UNPKG

@lonewolfspace/storage-manager-ts

Version:

A universal browser storage manager with optional AES encryption support for localStorage, sessionStorage, and cookies.

25 lines (24 loc) 735 B
import { BaseStorageManager } from "./base-storage-manager"; export declare class ClientLocalStorageManager extends BaseStorageManager { /** * Set a value in local storage * @param key The storage key * @param value The value to store */ static setItem(key: string, value: string): void; /** * Get a value from local storage * @param key The storage key * @returns The stored value or undefined if not found */ static getItem(key: string): string | undefined; /** * Remove a value from local storage * @param key The storage key */ static removeItem(key: string): void; /** * Clear all items from local storage */ static clear(): void; }