UNPKG

@universis/common

Version:

Universis - common directives and services

33 lines (32 loc) 785 B
import { AngularDataContext } from '@themost/angular'; /** * * 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>; }