UNPKG

@sebgroup/frontend-tools

Version:
17 lines (16 loc) 572 B
export declare type StorageManagementType = "LOCAL" | "SESSION" | "COOKIE"; export declare class StorageManagement implements Storage { private handler; get length(): number; constructor(type?: StorageManagementType); setItem(key: string, value: string): void; getItem(key: string): string; removeItem(key: string): boolean; clear(): void; /** * Retrieves the list of keys in the stored storage * @returns The list of keys in the stored storage */ keys(): Array<string>; key(index: number): string; }