From 1cd11d0ca9437e6af2e6d6d44530bdd92890487c Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Tue, 7 Apr 2020 13:14:13 -0400 Subject: [PATCH] Fix for issue #570: Add flow types to flow declaration file for feature opt-in functions https://github.com/immerjs/immer/issues/570 https://immerjs.github.io/immer/docs/installation#pick-your-immer-version --- src/types/index.js.flow | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/types/index.js.flow b/src/types/index.js.flow index 2c325af6..711313e0 100644 --- a/src/types/index.js.flow +++ b/src/types/index.js.flow @@ -105,3 +105,8 @@ declare export function createDraft(base: T): T * Optionally a patch-listener can be provided to gather the patches that are needed to construct the object. */ declare export function finishDraft(base: T, listener?: PatchListener): T + +declare export function enableES5(): void +declare export function enableMapSet(): void +declare export function enablePatches(): void +declare export function enableAllPlugins(): void