mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added type definitions for use-combined-reducers * fixed errors * fixed typo * deleted typescript version declaration * defined the same typescript version as react
10 lines
463 B
TypeScript
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];
|