We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f306688 commit 03097f6Copy full SHA for 03097f6
packages/vue/macros.d.ts
@@ -83,9 +83,11 @@ type ToRawRefs<T extends object> = {
83
: T[K]
84
}
85
86
-export declare function $ref<T>(arg?: T | Ref<T>): RefValue<UnwrapRef<T>>
+export declare function $ref<T>(): RefValue<T | undefined>
87
+export declare function $ref<T>(arg: T | Ref<T>): RefValue<UnwrapRef<T>>
88
-export declare function $shallowRef<T>(arg?: T): RefValue<T>
89
+export declare function $shallowRef<T>(): RefValue<T | undefined>
90
+export declare function $shallowRef<T>(arg: T): RefValue<T>
91
92
export declare function $toRef<T extends object, K extends keyof T>(
93
object: T,
0 commit comments