Skip to content
Myr

Fix for issue #570: Add flow types to flow declaration file for feature opt-in functions

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

https://github.com/immerjs/immer/issues/570 https://immerjs.github.io/immer/docs/installation#pick-your-immer-version

authored by Steven Watanabe · committed by Steven Watanabe · parent 0722281 · Browse files · 1 file+5 added−0 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+5 added−0 removed

  • other:+5 added−0 removed

1 file+5 added−0 removed

modified:src/types/index.js.flow+5 added
103 unmodified lines
104 * finalizes the draft into a new immutable object.105 * Optionally a patch-listener can be provided to gather the patches that are needed to construct the object.106 */107declare export function finishDraft<T>(base: T, listener?: PatchListener): T108109declare export function enableES5(): void110declare export function enableMapSet(): void111declare export function enablePatches(): void112declare export function enableAllPlugins(): void