@universis/common
Version:
Universis - common directives and services
22 lines (21 loc) • 675 B
TypeScript
import { AngularDataContext } from '@themost/angular';
export declare class LocalUserStorageService {
private context;
constructor(context: AngularDataContext);
/**
*
* Indicates whether the localStorage is available
*
*/
hasUserStorage(): boolean;
getItem(key: string): Promise<any>;
setItem(key: string, value: any): Promise<any>;
removeItem(key: string): Promise<any>;
}
export declare class SessionUserStorageService {
private context;
constructor(context: AngularDataContext);
getItem(key: string): Promise<any>;
setItem(key: string, value: any): Promise<any>;
removeItem(key: string): Promise<any>;
}