@sebgroup/frontend-tools
Version:
A set of frontend tools
17 lines (16 loc) • 572 B
TypeScript
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;
}