From: Thorsten Lünborg Date: Thu, 7 Oct 2021 22:30:54 +0000 (+0200) Subject: fix(types): ensure that DeepReadonly handles Ref type properly (#4714) X-Git-Tag: v3.2.20~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed0071ac1a6d18439f3212711c6901fbb7193288;p=thirdparty%2Fvuejs%2Fcore.git fix(types): ensure that DeepReadonly handles Ref type properly (#4714) --- diff --git a/packages/reactivity/src/reactive.ts b/packages/reactivity/src/reactive.ts index 92fd172707..9cce2ea0e6 100644 --- a/packages/reactivity/src/reactive.ts +++ b/packages/reactivity/src/reactive.ts @@ -132,6 +132,8 @@ export type DeepReadonly = T extends Builtin ? WeakSet> : T extends Promise ? Promise> + : T extends Ref + ? Ref> : T extends {} ? { readonly [K in keyof T]: DeepReadonly } : Readonly