UNPKG

@wora/cache-persist

Version:
13 lines 571 B
import { IDBPDatabase } from 'idb'; import { ICacheStorage } from './CacheTypes'; export declare type IOnUpgrade = (db: any, oldVersion: number, newVersion: number, transaction: any) => void; export declare function createIdbStorage(dbPromise: Promise<IDBPDatabase<any>>, storeName: string): ICacheStorage; export declare class IDBStorage { static create(options: { name?: string; storeNames?: Array<string>; version?: number; onUpgrade?: IOnUpgrade; }): Array<ICacheStorage>; } //# sourceMappingURL=idbstorage.d.ts.map