1 | import { Observable } from 'rxjs';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | export declare type Comparator = (x: any, y: any) => boolean;
|
13 | export declare type Transformer<RootState, V> = (store$: Observable<RootState>, scope: any) => Observable<V>;
|
14 | export declare type PropertySelector = string | number | symbol;
|
15 | export declare type PathSelector = (string | number)[];
|
16 | export declare type FunctionSelector<RootState, S> = (s: RootState) => S;
|
17 | export declare type Selector<RootState, S> = PropertySelector | PathSelector | FunctionSelector<RootState, S>;
|
18 |
|
19 | export declare const sniffSelectorType: <RootState, S>(selector?: Selector<RootState, S>) => "function" | "nil" | "path" | "property";
|
20 |
|
21 | export declare const resolver: <RootState, S>(selector?: Selector<RootState, S>) => {
|
22 | property: (state: any) => any;
|
23 | path: (state: RootState) => any;
|
24 | function: FunctionSelector<RootState, S>;
|
25 | nil: (state: RootState) => RootState;
|
26 | };
|
27 |
|
28 | export declare const resolveToFunctionSelector: <RootState, S>(selector?: Selector<RootState, S>) => FunctionSelector<RootState, S> | ((state: RootState) => RootState) | ((state: RootState) => any) | ((state: any) => any);
|
29 |
|
\ | No newline at end of file |