Skip to content
Myr

docs(immer): fix setPerson updater type in usage examples (#3502)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Seydi Charyyev · committed by GitHub · parent 038b938 · Browse files · 1 file+6 added−6 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−6 removed

  • other:+6 added−6 removed

1 file+6 added−6 removed

modified:docs/reference/middlewares/immer.md+6 added-6 removed
64 unmodified lines
65}6667type PersonStoreActions = {68 setPerson: (69 nextPerson: (70 person: PersonStoreState['person'],71 ) => PersonStoreState['person'] | PersonStoreState['person'],69 nextPerson:70 | PersonStoreState['person']71 | ((person: PersonStoreState['person']) => PersonStoreState['person']),72 ) => void73}7475type PersonStore = PersonStoreState & PersonStoreActions
88 unmodified lines
164}165166type PersonStoreActions = {167 setPerson: (168 nextPerson: (169 person: PersonStoreState['person'],170 ) => PersonStoreState['person'] | PersonStoreState['person'],168 nextPerson:169 | PersonStoreState['person']170 | ((person: PersonStoreState['person']) => PersonStoreState['person']),171 ) => void172}173174type PersonStore = PersonStoreState & PersonStoreActions
63 unmodified lines