diff --git a/src/v3/reactivity/ref.ts b/src/v3/reactivity/ref.ts index 244acc9b0d4..1a086bd2998 100644 --- a/src/v3/reactivity/ref.ts +++ b/src/v3/reactivity/ref.ts @@ -55,7 +55,7 @@ export type ShallowRef = Ref & { [ShallowRefMarker]?: true } export function shallowRef( value: T -): T extends Ref ? T : ShallowRef +): [T] extends [Ref] ? T : ShallowRef export function shallowRef(value: T): ShallowRef export function shallowRef(): ShallowRef export function shallowRef(value?: unknown) {