UNPKG

@universis/common

Version:

Universis - common directives and services

24 lines (23 loc) 855 B
import { AngularDataContext } from '@themost/angular'; import { InjectionToken } from '@angular/core'; export declare interface UserStorageInterface { localStorage: boolean; sessionStorage: boolean; } export declare const USER_STORAGE: InjectionToken<UserStorageInterface>; export declare class FallbackUserStorageService { private _context; private userStorage?; private _useSessionStorage; private _useLocalStorage; private _hasUserStorage; private _userStorageService; private _localUserStorage; private _sessionUserStorage; constructor(_context: AngularDataContext, userStorage?: UserStorageInterface); userLocalStorage: boolean; userSessionStorage: boolean; getItem(key: string): Promise<any>; setItem(key: string, value: string): Promise<any>; removeItem(key: string): Promise<any>; }