UNPKG

web-shared-preferences

Version:

An simple class to manage the loacal storage, including React like useString, useJSON and more!

15 lines (14 loc) 384 B
import { StorageImpl } from "./SharedPreferences"; /** * Used for debugging purposes only. */ export declare class TempLocalStorage implements StorageImpl { private valuesMap; constructor(); getItem(key: string): string; setItem(key: string, val: string): void; removeItem(key: any): void; clear(): void; key(i: number): any; get length(): number; }