Skip to content
Myr

Merge pull request #447 from nobitagit/flow-typedef-immerable

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

authored by Michel Weststrate · committed by GitHub · parents a866760, c8c9fcd · Browse files · 1 file+2 added−0 removed
This commit

State

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

Trailers

  • fix: add immerable Flow typedef

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:src/immer.js.flow+2 added
69 unmodified lines
70declare export default IProduce7172declare export var nothing: typeof undefined7374declare export var immerable: Symbol7576/**77 * Automatically freezes any state trees generated by immer.78 * This protects against accidental modifications of the state tree outside of an immer function.79 * This comes with a performance impact, so it is recommended to disable this option in production.
28 unmodified lines