@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
29 lines (28 loc) • 688 B
TypeScript
export declare class LocalStorage {
private static _fallbackStorageContent;
private static _fallbackStorage;
/**
* get local storage value
*/
static get<T>(key: string): T;
/**
* set local storage value
*/
static set(key: string, value: any): void;
/**
* remove local storage value
*/
static remove(key: string): void;
/**
* check whether localStorage is supported by the current browser
*/
static canUse(): boolean;
/**
* check whether the fallback storage is available
*/
private static useFallbackStorage;
/**
* clear the fallback storage
*/
private static clearFallbackStorage;
}