kawkab-frontend
Version:
Kawkab frontend is a frontend library for the Kawkab framework
13 lines (12 loc) • 347 B
TypeScript
type StorageType = 'localStorage' | 'sessionStorage';
export declare class ClientStorage {
private storage;
private type;
constructor(type?: StorageType);
private isSupported;
setItem(key: string, value: string): void;
getItem(key: string): string | null;
removeItem(key: string): void;
clear(): void;
}
export {};