UNPKG

json-localstorage

Version:

A clone of the Web Storage API for node using a JSON file for data

11 lines (10 loc) 333 B
declare namespace LocalStorage { let length: number; function getItem(key: string): string; function setItem(key: string, value: any): void; function removeItem(key: string): void; function clear(): undefined; function getLength(): number; function key(n: number): string | null; } export = LocalStorage;