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.

13 lines (12 loc) 422 B
import { ClearType, WebStorageConfigInterface } from '../config/config.interface'; export interface WebStorageServiceInterface { keys: Array<string>; new (): { keys: Array<string>; config: WebStorageConfigInterface; get(key: string): any; set(key: string, value: any): void; remove(key: string): void; clear(clearType?: ClearType, secondParam?: any): void; }; }