UNPKG

1.41 kBTypeScriptView Raw
1import { Action, ActionReducer, ActionReducerFactory, ActionReducerMap, MetaReducer } from './models';
2export declare function combineReducers<T, V extends Action = Action>(reducers: ActionReducerMap<T, V>, initialState?: Partial<T>): ActionReducer<T, V>;
3export declare function omit<T extends {
4 [key: string]: any;
5}>(object: T, keyToRemove: keyof T): Partial<T>;
6export declare function compose<A>(): (i: A) => A;
7export declare function compose<A, B>(b: (i: A) => B): (i: A) => B;
8export declare function compose<A, B, C>(c: (i: B) => C, b: (i: A) => B): (i: A) => C;
9export declare function compose<A, B, C, D>(d: (i: C) => D, c: (i: B) => C, b: (i: A) => B): (i: A) => D;
10export declare function compose<A, B, C, D, E>(e: (i: D) => E, d: (i: C) => D, c: (i: B) => C, b: (i: A) => B): (i: A) => E;
11export declare function compose<A, B, C, D, E, F>(f: (i: E) => F, e: (i: D) => E, d: (i: C) => D, c: (i: B) => C, b: (i: A) => B): (i: A) => F;
12export declare function compose<A = any, F = any>(...functions: any[]): (i: A) => F;
13export declare function createReducerFactory<T, V extends Action = Action>(reducerFactory: ActionReducerFactory<T, V>, metaReducers?: MetaReducer<T, V>[]): ActionReducerFactory<T, V>;
14export declare function createFeatureReducerFactory<T, V extends Action = Action>(metaReducers?: MetaReducer<T, V>[]): (reducer: ActionReducer<T, V>, initialState?: T) => ActionReducer<T, V>;