-
-
Notifications
You must be signed in to change notification settings - Fork 190
/
Copy pathIDBRequest.d.ts
75 lines (75 loc) · 2.92 KB
/
IDBRequest.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
export type IDBOpenDBRequestFull = IDBRequestFull & IDBOpenDBRequest & {};
export type IDBRequestFull = IDBRequest & EventTarget & import("eventtargeter").ShimEventTarget & {
transaction: import("./IDBTransaction.js").IDBTransactionFull;
__done: boolean;
__result: import("./IDBDatabase.js").IDBDatabaseFull | undefined;
__error: null | DOMException | Error;
__source: null | import("./IDBDatabase.js").IDBDatabaseFull | import("./IDBObjectStore.js").IDBObjectStoreFull | import("./IDBIndex.js").IDBIndexFull;
__transaction: undefined | null | import("./IDBTransaction.js").IDBTransactionFull;
addLateEventListener: (ev: string, listener: (e: Event & {
__legacyOutputDidListenersThrowError: boolean;
}) => void) => void;
addDefaultEventListener: (ev: string, listener: (e: Event & {
__legacyOutputDidListenersThrowError: boolean;
}) => void) => void;
};
/**
* The IDBRequest Object that is returns for all async calls.
* @see http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#request-api
* @class
*/
export function IDBRequest(): void;
export class IDBRequest {
/**
* @this {IDBRequestFull}
* @returns {import('./IDBTransaction.js').IDBTransactionFull|null|undefined}
*/
__getParent(this: IDBRequestFull): import("./IDBTransaction.js").IDBTransactionFull | null | undefined;
}
export namespace IDBRequest {
/**
* @typedef {IDBRequest & EventTarget & import('eventtargeter').ShimEventTarget & {
* transaction: import('./IDBTransaction.js').IDBTransactionFull,
* __done: boolean,
* __result: import('./IDBDatabase.js').IDBDatabaseFull|undefined,
* __error: null|DOMException|Error,
* __source: null|import('./IDBDatabase.js').IDBDatabaseFull|
* import('./IDBObjectStore.js').IDBObjectStoreFull|
* import('./IDBIndex.js').IDBIndexFull,
* __transaction: undefined|null|
* import('./IDBTransaction.js').IDBTransactionFull,
* addLateEventListener: (ev: string, listener: (e: Event & {
* __legacyOutputDidListenersThrowError: boolean
* }) => void) => void
* addDefaultEventListener: (ev: string, listener: (e: Event & {
* __legacyOutputDidListenersThrowError: boolean
* }) => void) => void
* }} IDBRequestFull
*/
/**
* @class
* @this {IDBRequestFull}
*/
function __super(this: IDBRequestFull): void;
/**
* @returns {IDBRequestFull}
*/
function __createInstance(): IDBRequestFull;
}
/**
* @typedef {IDBRequestFull & IDBOpenDBRequest & {}} IDBOpenDBRequestFull
*/
/**
* The IDBOpenDBRequest called when a database is opened.
* @class
*/
export function IDBOpenDBRequest(): void;
export class IDBOpenDBRequest {
}
export namespace IDBOpenDBRequest {
/**
* @returns {IDBRequestFull & IDBOpenDBRequest}
*/
function __createInstance(): IDBRequestFull & IDBOpenDBRequest;
}
//# sourceMappingURL=IDBRequest.d.ts.map