umbrella-storage
Version:
umbrella of localStorage & sessionStorage
11 lines (10 loc) • 467 B
TypeScript
declare class umbrella {
static config(prefix: string): void;
static setLocalStorage(key: string, value: any): void;
static getLocalStorage(key: string, withoutParse?: boolean): any;
static removeLocalStorage(key: string): void;
static setSessionStorage(key: string, value: any): void;
static getSessionStorage(key: string, withoutParse?: boolean): any;
static removeSessionStorage(key: string): void;
}
export default umbrella;