UNPKG

461 BTypeScriptView Raw
1export interface Storage {
2 getItem: (key: string) => string | null;
3 removeItem: (key: string) => void;
4 setItem: (key: string, value: string) => void;
5 length: number;
6}
7export default class StorageAPI {
8 storage: Storage | null;
9 constructor(storage?: Storage);
10 get(name: string): string | null;
11 set(name: string, value: string): {
12 isQuotaError: boolean;
13 error: any;
14 };
15}
16//# sourceMappingURL=StorageAPI.d.ts.map
\No newline at end of file