1 | export function rtop(request: IDBRequest): Promise<any>;
|
2 | export function openDB(name: string, initDB: (arg0: IDBDatabase) => any): Promise<IDBDatabase>;
|
3 | export function deleteDB(name: string): Promise<any>;
|
4 | export function createStores(db: IDBDatabase, definitions: Array<Array<string> | Array<string | IDBObjectStoreParameters | undefined>>): void;
|
5 | export function transact(db: IDBDatabase, stores: Array<string>, access?: "readonly" | "readwrite" | undefined): Array<IDBObjectStore>;
|
6 | export function count(store: IDBObjectStore, range?: IDBKeyRange | undefined): Promise<number>;
|
7 | export function get(store: IDBObjectStore, key: string | number | ArrayBuffer | Date | Array<any>): Promise<string | number | ArrayBuffer | Date | Array<any>>;
|
8 | export function del(store: IDBObjectStore, key: string | number | ArrayBuffer | Date | IDBKeyRange | Array<any>): Promise<any>;
|
9 | export function put(store: IDBObjectStore, item: string | number | ArrayBuffer | Date | boolean, key?: string | number | any[] | Date | ArrayBuffer | undefined): Promise<any>;
|
10 | export function add(store: IDBObjectStore, item: string | number | ArrayBuffer | Date | boolean, key: string | number | ArrayBuffer | Date | Array<any>): Promise<any>;
|
11 | export function addAutoKey(store: IDBObjectStore, item: string | number | ArrayBuffer | Date): Promise<number>;
|
12 | export function getAll(store: IDBObjectStore, range?: IDBKeyRange | undefined, limit?: number | undefined): Promise<Array<any>>;
|
13 | export function getAllKeys(store: IDBObjectStore, range?: IDBKeyRange | undefined, limit?: number | undefined): Promise<Array<any>>;
|
14 | export function queryFirst(store: IDBObjectStore, query: IDBKeyRange | null, direction: 'next' | 'prev' | 'nextunique' | 'prevunique'): Promise<any>;
|
15 | export function getLastKey(store: IDBObjectStore, range?: IDBKeyRange | null | undefined): Promise<any>;
|
16 | export function getFirstKey(store: IDBObjectStore, range?: IDBKeyRange | null | undefined): Promise<any>;
|
17 | export function getAllKeysValues(store: IDBObjectStore, range?: IDBKeyRange | undefined, limit?: number | undefined): Promise<Array<KeyValuePair>>;
|
18 | export function iterate(store: IDBObjectStore, keyrange: IDBKeyRange | null, f: (arg0: any, arg1: any) => void | boolean | Promise<void | boolean>, direction?: 'next' | 'prev' | 'nextunique' | 'prevunique'): Promise<void>;
|
19 | export function iterateKeys(store: IDBObjectStore, keyrange: IDBKeyRange | null, f: (arg0: any) => void | boolean | Promise<void | boolean>, direction?: 'next' | 'prev' | 'nextunique' | 'prevunique'): Promise<void>;
|
20 | export function getStore(t: IDBTransaction, store: string): IDBObjectStore;
|
21 | export function createIDBKeyRangeBound(lower: any, upper: any, lowerOpen: boolean, upperOpen: boolean): IDBKeyRange;
|
22 | export function createIDBKeyRangeUpperBound(upper: any, upperOpen: boolean): IDBKeyRange;
|
23 | export function createIDBKeyRangeLowerBound(lower: any, lowerOpen: boolean): IDBKeyRange;
|
24 | export type KeyValuePair = {
|
25 | |
26 |
|
27 |
|
28 | k: any;
|
29 | |
30 |
|
31 |
|
32 | v: any;
|
33 | };
|
34 |
|
\ | No newline at end of file |