UNPKG

ngx-store

Version:

Angular decorators to automagically keep variables in HTML5 LocalStorage, SessionStorage, cookies; injectable services for managing and listening to data changes and a bit more.

17 lines (16 loc) 588 B
import { NgxStorage } from './storage'; import { StorageName } from '../webstorage.utility'; export declare class SharedStorage extends NgxStorage { protected sharedMap: Map<string, any>; constructor(); get type(): StorageName; get length(): number; key(index: number): string | any; getItem(key: string): any; removeItem(key: string): void; setItem(key: string, value: any): void; clear(): void; forEach(func: (value: string, key: any) => any): void; protected getAllKeys(): Array<string>; } export declare const sharedStorage: SharedStorage;