DefinitelyTyped/types/use-combined-reducers/index.d.ts
kwdowik 06484d13df Added type definitions for use-combined-reducers (#38647)
* Added type definitions for use-combined-reducers

* fixed errors

* fixed typo

* deleted typescript version declaration

* defined the same typescript version as react
2019-09-27 09:06:40 -07:00

10 lines
463 B
TypeScript

// Type definitions for use-combined-reducers 1.0
// Project: https://github.com/the-road-to-learn-react/use-combined-reducers#readme
// Definitions by: kwdowik <https://github.com/kwdowik>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
export default function useCombinedReducers<T, A>(combinedReducers: Record<keyof T, [T[keyof T], React.Dispatch<A>]>): [T, (action: A) => void];