diff --git a/packages/reactivity/src/ref.ts b/packages/reactivity/src/ref.ts index 10e577fe5f0..5b99194b2e0 100644 --- a/packages/reactivity/src/ref.ts +++ b/packages/reactivity/src/ref.ts @@ -98,10 +98,8 @@ export type UnwrapRef = { object: { [K in keyof T]: UnwrapRef } }[T extends ComputedRef ? 'cRef' - : T extends Ref - ? 'ref' - : T extends Array - ? 'array' - : T extends Function | CollectionTypes | BaseTypes - ? 'ref' // bail out on types that shouldn't be unwrapped - : T extends object ? 'object' : 'ref'] + : T extends Array + ? 'array' + : T extends Ref | Function | CollectionTypes | BaseTypes + ? 'ref' // bail out on types that shouldn't be unwrapped + : T extends object ? 'object' : 'ref']