From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Mon, 28 Sep 2020 16:39:14 +0000 (-0700) Subject: types: fix Typescript 4.1 compile error (#2219) X-Git-Tag: v3.0.1~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d52d139b854238708195f5d332b7d0ec3a4883a5;p=thirdparty%2Fvuejs%2Fcore.git types: fix Typescript 4.1 compile error (#2219) close #2218 --- diff --git a/packages/reactivity/src/collectionHandlers.ts b/packages/reactivity/src/collectionHandlers.ts index f7ae9ae5dc..93d09770c9 100644 --- a/packages/reactivity/src/collectionHandlers.ts +++ b/packages/reactivity/src/collectionHandlers.ts @@ -21,7 +21,7 @@ const toReactive = (value: T): T => isObject(value) ? reactive(value) : value const toReadonly = (value: T): T => - isObject(value) ? readonly(value) : value + isObject(value) ? readonly(value as Record) : value const toShallow = (value: T): T => value