DefinitelyTyped/types/react-combine-reducers/index.d.ts
Raphaël L 368934537f
Add types for package react-combine-reducers (#43749)
* Add types for react-combine-reducer

* Run prettier on react-combine-reducers

* Fix linter issues
2020-04-10 19:42:19 -07:00

14 lines
574 B
TypeScript

// Type definitions for react-combine-reducers 1.0
// Project: https://github.com/ankita1010/react-combine-reducers#readme
// Definitions by: Raphaël Léger <https://github.com/raphael-leger>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Minimum TypeScript Version: 3.1
import { Reducer, ReducerState } from 'react';
declare function combineReducers<R extends Reducer<any, any>>(
reducers: {
[K in keyof ReducerState<R>]: [Reducer<ReducerState<R>[K], any>, ReducerState<R>[K]];
},
): [R, ReducerState<R>];
export = combineReducers;