
jsMain.web.idb.IDBRequest.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package web.idb
import web.errors.DOMException
import web.events.Event
import web.events.EventHandler
import web.events.EventTarget
sealed external class IDBRequest :
EventTarget {
/** When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending. */
val error: DOMException?
var onerror: EventHandler?
var onsuccess: EventHandler?
/** Returns "pending" until a request is complete, then returns "done". */
val readyState: IDBRequestReadyState
/** When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending. */
val result: T
/** Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request. */
val source: Any /* IDBObjectStore | IDBIndex | IDBCursor */
/** Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise. */
val transaction: IDBTransaction?
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy