In 'Transaction.kt' there is
public fun Database.createObjectStore(name: String, autoIncrement: AutoIncrement): ObjectStore
and
public fun Database.createObjectStore(name: String, keyPath: KeyPath): ObjectStore
but there is no function with keyPath and autoincrement, why? from the code I don't know if aforementioned function means other option is on. (If I use autoincrement=true, what's id field name? just id?)
IDBObjecStore has a function with a parameter:
public external interface IDBCreateObjectStoreOptions : JsAny {
public var autoIncrement: Boolean?
public var keyPath: IDBKeyPath?
}