Skip to content

Commit

Permalink
types: fix Typescript 4.1 compile error (#2219)
Browse files Browse the repository at this point in the history
close #2218
  • Loading branch information
sandersn committed Sep 28, 2020
1 parent bcdd100 commit d52d139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reactivity/src/collectionHandlers.ts
Expand Up @@ -21,7 +21,7 @@ const toReactive = <T extends unknown>(value: T): T =>
isObject(value) ? reactive(value) : value

const toReadonly = <T extends unknown>(value: T): T =>
isObject(value) ? readonly(value) : value
isObject(value) ? readonly(value as Record<any, any>) : value

const toShallow = <T extends unknown>(value: T): T => value

Expand Down

0 comments on commit d52d139

Please sign in to comment.