UNPKG

chrome-cross-storage

Version:

Google chrome storage and localStorage wrapper which help users debug google chrome application which depends on the storage as simple web apps

13 lines (12 loc) 470 B
declare class Storage { private GOOGLE_CHROME_STORAGE; private LOCAL_STORAGE; private storageMethod; constructor(type: string); set(key: string, value: string, callback?: () => void): void; get(keys: string | string[] | null, callback?: (arg: any) => void): void; getAll(callback?: (args: any) => void): void; remove(keys: string | string[], callback?: () => void): void; clear(callback?: () => void): void; } export default Storage;