UNPKG

1.68 kBTypeScriptView Raw
1import { ActionReducer, Action } from '@ngrx/store';
2import { InjectionToken } from '@angular/core';
3export declare type ActionSanitizer = (action: Action, id: number) => Action;
4export declare type StateSanitizer = (state: any, index: number) => any;
5export declare type SerializationOptions = {
6 options?: boolean | any;
7 replacer?: (key: any, value: any) => {};
8 reviver?: (key: any, value: any) => {};
9 immutable?: any;
10 refs?: Array<any>;
11};
12export declare type Predicate = (state: any, action: Action) => boolean;
13export interface DevToolsFeatureOptions {
14 pause?: boolean;
15 lock?: boolean;
16 persist?: boolean;
17 export?: boolean;
18 import?: 'custom' | boolean;
19 jump?: boolean;
20 skip?: boolean;
21 reorder?: boolean;
22 dispatch?: boolean;
23 test?: boolean;
24}
25export declare class StoreDevtoolsConfig {
26 maxAge: number | false;
27 monitor?: ActionReducer<any, any>;
28 actionSanitizer?: ActionSanitizer;
29 stateSanitizer?: StateSanitizer;
30 name?: string;
31 serialize?: boolean | SerializationOptions;
32 logOnly?: boolean;
33 features?: DevToolsFeatureOptions;
34 actionsBlocklist?: string[];
35 actionsSafelist?: string[];
36 predicate?: Predicate;
37}
38export declare const STORE_DEVTOOLS_CONFIG: InjectionToken<StoreDevtoolsConfig>;
39export declare const INITIAL_OPTIONS: InjectionToken<StoreDevtoolsConfig>;
40export declare type StoreDevtoolsOptions = Partial<StoreDevtoolsConfig> | (() => Partial<StoreDevtoolsConfig>);
41export declare function noMonitor(): null;
42export declare const DEFAULT_NAME = "NgRx Store DevTools";
43export declare function createConfig(optionsInput: StoreDevtoolsOptions): StoreDevtoolsConfig;
44
\No newline at end of file