commonMain.IDBCursor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of external Show documentation
Show all versions of external Show documentation
Kotlin/JS IndexedDB Wrapper
The newest version!
package com.juul.indexeddb.external
/** https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor */
public expect interface IDBCursor : JsAny {
public val key: IDBKey
public val primaryKey: IDBKey
public fun advance(count: Int)
public fun `continue`()
public fun `continue`(key: IDBKey)
public fun continuePrimaryKey(key: IDBKey, primaryKey: IDBKey)
}
/** https://developer.mozilla.org/en-US/docs/Web/API/IDBCursorWithValue */
public expect interface IDBCursorWithValue : IDBCursor {
public val value: JsAny?
public fun delete(): IDBRequest<*>
public fun update(value: JsAny?): IDBRequest
}