Skip to content
Myr

fix: added flow typings for new API's introduced in v6. Fixes #570

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 427040c, 1cd11d0 · 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
76 unmodified lines
77 * finalizes the draft into a new immutable object.78 * Optionally a patch-listener can be provided to gather the patches that are needed to construct the object.79 */80declare export function finishDraft<T>(base: T, listener?: PatchListener): T8182declare export function enableES5(): void83declare export function enableMapSet(): void84declare export function enablePatches(): void85declare export function enableAllPlugins(): void