ngx-indexed-db
Version:
Angular wrapper to IndexedDB database.
6 lines (5 loc) • 470 B
TypeScript
import { ObjectStoreMeta } from './ngx-indexed-db.meta';
export declare function openDatabase(indexedDB: IDBFactory, dbName: string, version: number, upgradeCallback?: (a: Event, b: IDBDatabase) => void): Promise<IDBDatabase>;
export declare function CreateObjectStore(indexedDB: IDBFactory, dbName: string, version: number, storeSchemas: ObjectStoreMeta[], migrationFactory?: () => {
[key: number]: (db: IDBDatabase, transaction: IDBTransaction) => void;
}): void;