Skip to content

Commit fd8c601

Browse files
docs(react): add Action constraint to redux middleware signature (#3492)
1 parent 2ce8226 commit fd8c601

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/reference/middlewares/redux.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const nextStateCreatorFn = redux(reducerFn, initialState)
2525
### Signature
2626

2727
```ts
28-
redux<T, A>(reducerFn: (state: T, action: A) => T, initialState: T): StateCreator<T & { dispatch: (action: A) => A }, [['zustand/redux', A]], []>
28+
redux<T, A extends { type: string }>(reducerFn: (state: T, action: A) => T, initialState: T): StateCreator<T & { dispatch: (action: A) => A }, [['zustand/redux', A]], []>
2929
```
3030
3131
### Mutator

0 commit comments

Comments
 (0)