Skip to content

Commit

Permalink
Fix Flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
guigrpa committed Oct 3, 2017
1 parent de04eb1 commit 2e7cb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/timm.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export function update<T: ArrayOrObject>(
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);
}
Expand Down

0 comments on commit 2e7cb1a

Please sign in to comment.