mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-27 00:15:09 +08:00
14 lines
421 B
TypeScript
14 lines
421 B
TypeScript
import {
|
|
Reducer,
|
|
Action,
|
|
} from 'redux';
|
|
import reduceReducers from 'reduce-reducers';
|
|
|
|
interface TestStore {
|
|
a: number;
|
|
b: string;
|
|
}
|
|
const firstReducer: (state: TestStore, action: Action) => TestStore = (a, b) => a;
|
|
const secondReducer: (state: TestStore, action: Action) => TestStore = (a, b) => a;
|
|
const finalReducer: (state: TestStore, action: Action) => TestStore = reduceReducers(firstReducer, secondReducer);
|