volume-localstorage.d.ts 471 B

1234567891011121314
  1. import { Volume } from './volume';
  2. export interface IStore {
  3. setItem(key: string, json: any): any;
  4. getItem(key: string): any;
  5. removeItem(key: string): any;
  6. }
  7. export 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. }
  14. export declare function createVolume(namespace: string, LS?: IStore | object): new (...args: any[]) => Volume;