UNPKG

shopper

Version:
13 lines (12 loc) 366 B
export interface DataStore { getItem(key: string): Promise<any>; setItem(key: string, value: any): Promise<void>; } export declare class SimpleDataStore implements DataStore { private _storage; constructor({ storage }: { storage: Storage; }); getItem(key: string): Promise<any>; setItem(key: string, value: any): Promise<void>; }