Installation
npm install --save @types/good-storage
Summary
This package contains type definitions for good-storage (https://github.com/ustbhuangyi/storage).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/good-storage.
index.d.ts
interface Storage {
session: Storage;
set(key: string, val?: any): any;
get(key: string, def?: any): any;
has(key: string): boolean;
remove(key: string): void;
clear(): void;
getAll(): any;
forEach(callback: () => void): void;
}
declare const storage: Storage;
export = storage;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Wang KaiLing.