web-storage-helper
Version:
A TypeScript library providing a unified API for managing browser storage with support for multiple storage types (localStorage, sessionStorage, cookies, IndexedDB, Temp) and optional encryption for secure data storage.
12 lines • 379 B
TypeScript
declare class IndexedDB {
private static instance;
private dbPromise;
constructor();
static getInstance(): IndexedDB;
set(key: string, value: string): Promise<boolean>;
get(key: string): Promise<string | null>;
clear(key?: string): Promise<boolean>;
}
declare const _default: IndexedDB;
export default _default;
//# sourceMappingURL=indexedDB.d.ts.map