mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add types for react-combine-reducer * Run prettier on react-combine-reducers * Fix linter issues
14 lines
574 B
TypeScript
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;
|