We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9ca2d8 commit 58638a5Copy full SHA for 58638a5
src/v3/reactivity/ref.ts
@@ -55,7 +55,7 @@ export type ShallowRef<T = any> = Ref<T> & { [ShallowRefMarker]?: true }
55
56
export function shallowRef<T extends object>(
57
value: T
58
-): T extends Ref ? T : ShallowRef<T>
+): [T] extends [Ref] ? T : ShallowRef<T>
59
export function shallowRef<T>(value: T): ShallowRef<T>
60
export function shallowRef<T = any>(): ShallowRef<T | undefined>
61
export function shallowRef(value?: unknown) {
0 commit comments