UNPKG

@mewters/smart-storage

Version:

A JavaScript/TypeScript library designed to simplify working with localStorage, sessionStorage, and cookies by offering automatic object conversion and consistent API.

10 lines (9 loc) 277 B
export declare class BaseStorage { private storage; constructor(storage: Storage); get<T>(key: string, defaultValue: T): T; set<T>(key: string, value: T | string): void; remove(key: string): void; removeItems(keys: string[]): void; clear(): void; }