Skip to content

Fix TypeScript example #170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2018
Merged

Fix TypeScript example #170

merged 1 commit into from
Jul 24, 2018

Conversation

knpwrs
Copy link
Contributor

@knpwrs knpwrs commented Jul 22, 2018

Of course after #161 was merged I realized that my README example didn't actually do anything. This just makes sure that the original state is passed as the first parameter. Previously newState would have been a function instead of the new state object.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.137% when pulling 5a2f681 on knpwrs:patch-2 into edc8b7c on mweststrate:master.

@mweststrate
Copy link
Collaborator

Nice catch :)

@mweststrate mweststrate merged commit b618bf9 into immerjs:master Jul 24, 2018
@knpwrs knpwrs deleted the patch-2 branch July 24, 2018 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants