Skip to content
Myr

Merge pull request #170 from knpwrs/patch-2

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

Fix TypeScript example

authored by Michel Weststrate · committed by GitHub · parents edc8b7c, 5a2f681 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:readme.md+1 added-1 removed
302 unmodified lines
303const state: State = {304 x: 0;305};306307const newState = produce<State>(draft => {307const newState = produce<State>(state, draft => {308 // `x` can be modified here309 draft.x++;310});311
141 unmodified lines