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.
7 lines (6 loc) • 823 B
TypeScript
import { CookieStorageDecoratorConfig, LocalStorageDecoratorConfig, SessionStorageDecoratorConfig, WebStorageDecoratorConfig } from '../ngx-store.types';
export declare type DecoratorReturn = (target: any, propertyName: string) => void;
export declare function LocalStorage(keyOrConfig?: string | LocalStorageDecoratorConfig, config?: LocalStorageDecoratorConfig): DecoratorReturn;
export declare function SessionStorage(keyOrConfig?: string | SessionStorageDecoratorConfig, config?: SessionStorageDecoratorConfig): DecoratorReturn;
export declare function CookieStorage(keyOrConfig?: string | CookieStorageDecoratorConfig, config?: CookieStorageDecoratorConfig): DecoratorReturn;
export declare function SharedStorage(keyOrConfig?: string | WebStorageDecoratorConfig, config?: WebStorageDecoratorConfig): DecoratorReturn;