UNPKG

471 BTypeScriptView Raw
1import { Volume } from './volume';
2export interface IStore {
3 setItem(key: string, json: any): any;
4 getItem(key: string): any;
5 removeItem(key: string): any;
6}
7export declare class ObjectStore {
8 obj: object;
9 constructor(obj: any);
10 setItem(key: string, json: any): void;
11 getItem(key: string): any;
12 removeItem(key: string): void;
13}
14export declare function createVolume(namespace: string, LS?: IStore | object): new (...args: any[]) => Volume;