|
|
@@ -109,9 +109,7 @@ export function isRef(r: any): r is Ref {
|
|
|
* @param value - The object to wrap in the ref.
|
|
|
* @see {@link https://vuejs.org/api/reactivity-core.html#ref}
|
|
|
*/
|
|
|
-export function ref<T>(
|
|
|
- value: T,
|
|
|
-): [T] extends [Ref] ? IfAny<T, Ref<T>, T> : Ref<UnwrapRef<T>, UnwrapRef<T> | T>
|
|
|
+export function ref<T>(value: T): Ref<UnwrapRef<T>, UnwrapRef<T> | T>
|
|
|
export function ref<T = any>(): Ref<T | undefined>
|
|
|
export function ref(value?: unknown) {
|
|
|
return createRef(value, false)
|