UNPKG

@flexi-ui/storage

Version:
11 lines (10 loc) 311 B
export declare class LocalStorage { private storage; private prefixKey?; constructor(prefixKey?: string, storage?: Storage); private getKey; set<T>(key: string, value: T, expire?: number | null): void; get<T>(key: string, def?: T): T; remove(key: string): void; clear(): void; }