UNPKG

ngx-webstorage

Version:

### Local and session storage - Angular service This library provides an easy to use service to manage the web storages (local and session) from your Angular application. It provides also two decorators to synchronize the component attributes and the web

17 lines (16 loc) 609 B
import { Observable, Subject } from 'rxjs'; import { StorageStrategy } from '../lib/core/interfaces/storageStrategy'; export declare const StorageStrategyStubName: string; declare class StorageStrategyStub implements StorageStrategy<any> { readonly keyChanges: Subject<string>; store: any; _available: boolean; readonly name: string; constructor(name?: string); get isAvailable(): boolean; get(key: string): Observable<any>; set(key: string, value: any): Observable<any>; del(key: string): Observable<void>; clear(): Observable<void>; } export { StorageStrategyStub };