ladybird/Libraries/LibWeb/IndexedDB/IDBRequest.idl

24 lines
667 B
Text
Raw Normal View History

#import <DOM/EventTarget.idl>
2024-11-07 20:02:13 +01:00
#import <IndexedDB/IDBCursor.idl>
#import <IndexedDB/IDBIndex.idl>
#import <IndexedDB/IDBObjectStore.idl>
// https://w3c.github.io/IndexedDB/#idbrequest
[Exposed=(Window,Worker)]
interface IDBRequest : EventTarget {
readonly attribute any result;
readonly attribute DOMException? error;
2024-11-07 20:02:13 +01:00
readonly attribute (IDBObjectStore or IDBIndex or IDBCursor)? source;
2024-12-01 21:23:15 +04:00
readonly attribute IDBTransaction? transaction;
readonly attribute IDBRequestReadyState readyState;
// Event handlers:
2024-06-22 11:32:36 +01:00
attribute EventHandler onsuccess;
2024-06-22 11:34:09 +01:00
attribute EventHandler onerror;
};
enum IDBRequestReadyState {
"pending",
"done"
};