@angular-redux/store
Version:
Angular 2 bindings for Redux
19 lines (18 loc) • 1.24 kB
TypeScript
import { Observable } from 'rxjs/Observable';
export declare type Comparator = (x: any, y: any) => boolean;
export declare type Transformer<RootState, V> = (store$: Observable<RootState>) => Observable<V>;
export declare type PropertySelector = string | number | symbol;
export declare type PathSelector = (string | number)[];
export declare type FunctionSelector<RootState, S> = ((s: RootState) => S);
export declare type Selector<RootState, S> = PropertySelector | PathSelector | FunctionSelector<RootState, S>;
/** @hidden */
export declare const sniffSelectorType: <RootState, S>(selector?: string | number | symbol | (string | number)[] | ((s: RootState) => S) | undefined) => "path" | "function" | "nil" | "property";
/** @hidden */
export declare const resolver: <RootState, S>(selector?: string | number | symbol | (string | number)[] | ((s: RootState) => S) | undefined) => {
property: (state: any) => any;
path: (state: any) => any;
function: (s: RootState) => S;
nil: (state: any) => any;
};
/** @hidden */
export declare const resolveToFunctionSelector: <RootState, S>(selector?: string | number | symbol | (string | number)[] | ((s: RootState) => S) | undefined) => ((state: any) => any) | ((s: RootState) => S);