angular-web-store
Version:
## Installation
37 lines (36 loc) • 983 B
TypeScript
import { InjectionToken } from '@angular/core';
export interface ActionNotifyOptions {
set?: boolean;
get?: boolean;
remove?: boolean;
clear?: boolean;
}
export declare class SetAction {
key: string;
value: any;
expiredIn: string;
static TYPE: string;
constructor(key: string, value: any, expiredIn: string);
}
export declare class GetAction {
key: string;
static TYPE: string;
constructor(key: string);
}
export declare class RemoveAction {
key: string;
static TYPE: string;
constructor(key: string);
}
export declare class ClearAction {
static TYPE: string;
constructor();
}
export interface AngularWebStoreConfig {
prefix?: string;
expiredIn?: string;
actionNotify?: ActionNotifyOptions;
keepAlive?: boolean;
}
export declare const ANGULAR_WEB_STORE_CONFIG: InjectionToken<{}>;
export declare type Actions = SetAction | GetAction | RemoveAction | ClearAction;