UNPKG

ngx-indexed-db

Version:
6 lines (5 loc) 470 B
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;