Skip to content

Commit

Permalink
Merge pull request #447 from nobitagit/flow-typedef-immerable
Browse files Browse the repository at this point in the history
fix: add immerable Flow typedef
  • Loading branch information
mweststrate committed Oct 22, 2019
2 parents a866760 + c8c9fcd commit 09d37ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/immer.js.flow
Expand Up @@ -71,6 +71,8 @@ declare export default IProduce

declare export var nothing: typeof undefined

declare export var immerable: Symbol

/**
* Automatically freezes any state trees generated by immer.
* This protects against accidental modifications of the state tree outside of an immer function.
Expand Down

0 comments on commit 09d37ce

Please sign in to comment.