UNPKG

peadb

Version:

"Pea sized JavaScript DB: wrapper for browser storage APIs"

12 lines (11 loc) 314 B
export default class SessionDB { private readonly storage; private dbKey; constructor(dataKey: string); get(key: string): string | null; getAll(): string[] | null; set(key: string, value: string): void; delete(key: string): void; deleteAll(): void; nukeDB(): void; }