You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
471 B

3 months ago
  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;