We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c39d7a commit 2634581Copy full SHA for 2634581
index.d.ts
@@ -46,7 +46,7 @@ export interface Action<T = any> {
46
* @template S The type of state consumed and produced by this reducer.
47
* @template A The type of actions the reducer can potentially respond to.
48
*/
49
-export type Reducer<S = {}, A extends Action = Action> = <Act extends A>(state: S, action: Act) => S;
+export type Reducer<S = {}, A extends Action = Action> = (state: S, action: A) => S;
50
51
/**
52
* Object whose values correspond to different reducer functions.
0 commit comments