@universis/common
Version:
Universis - common directives and services
36 lines (35 loc) • 963 B
TypeScript
import { AngularDataContext } from '@themost/angular';
import * as i0 from "@angular/core";
/**
*
* This Service is used to get or set user storage items
* @export
* @class ConfigurationService
*/
export declare class UserStorageService {
private context;
private _hasUserStorage;
constructor(context: AngularDataContext);
/**
* Validates if server supports user storage
*/
hasUserStorage(): Promise<any>;
/**
* Gets a user storage item based on the given key
* @param key
*/
getItem(key: string): Promise<any>;
/**
* Sets a user storage item
* @param key
* @param value
*/
setItem(key: string, value: any): Promise<any>;
/**
* Removes a user storage item
* @param key
*/
removeItem(key: string): Promise<any>;
static ɵfac: i0.ɵɵFactoryDeclaration<UserStorageService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<UserStorageService>;
}