Skip to content

Commit 84b112e

Browse files
authored
docs: update redux api docs (#3180)
* Update redux.md * Update redux.md
1 parent 4ad3977 commit 84b112e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/middlewares/redux.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ type PersonStoreAction =
7070
| { type: 'person/setLastName'; lastName: string }
7171
| { type: 'person/setEmail'; email: string }
7272

73-
type PersonStore = PersonStoreState & PersonStoreAction
73+
type PersonStore = PersonStoreState & {
74+
dispatch: (action: PersonStoreAction) => PersonStoreAction
75+
}
7476

7577
const personStoreReducer = (
7678
state: PersonStoreState,

0 commit comments

Comments
 (0)