Files
30-seconds-of-code/node_modules/idb-keyval/dist/idb-keyval.d.ts
2019-08-20 15:52:05 +02:00

12 lines
653 B
TypeScript

export declare class Store {
readonly storeName: string;
readonly _dbp: Promise<IDBDatabase>;
constructor(dbName?: string, storeName?: string);
_withIDBStore(type: IDBTransactionMode, callback: ((store: IDBObjectStore) => void)): Promise<void>;
}
export declare function get<Type>(key: IDBValidKey, store?: Store): Promise<Type>;
export declare function set(key: IDBValidKey, value: any, store?: Store): Promise<void>;
export declare function del(key: IDBValidKey, store?: Store): Promise<void>;
export declare function clear(store?: Store): Promise<void>;
export declare function keys(store?: Store): Promise<IDBValidKey[]>;