From 2e7cb1a150f5ea627f6f16e3b30912b667ca0405 Mon Sep 17 00:00:00 2001 From: "G. Grau" Date: Tue, 3 Oct 2017 09:05:15 +0200 Subject: [PATCH] Fix Flow error --- src/timm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timm.js b/src/timm.js index 85c83b9..d079301 100755 --- a/src/timm.js +++ b/src/timm.js @@ -386,7 +386,7 @@ export function update( key: Key, fnUpdate: (prevValue: any) => any ): T { - const prevVal = obj == null ? undefined : (obj: Object)[key]; + const prevVal = obj == null ? undefined : (obj: any)[key]; const nextVal = fnUpdate(prevVal); return set(obj, key, nextVal); }