From: 三咲智子 Kevin Deng Date: Tue, 8 Nov 2022 06:38:53 +0000 (+0800) Subject: fix(types/reactivity-transform): fix type when initial value is not used (#6821) X-Git-Tag: v3.2.42~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fdc5902cce0d077c722dfd422850ca69fd51be8e;p=thirdparty%2Fvuejs%2Fcore.git fix(types/reactivity-transform): fix type when initial value is not used (#6821) fix #6820 --- diff --git a/packages/vue/macros.d.ts b/packages/vue/macros.d.ts index 9df3f107cb..68ccda6ee2 100644 --- a/packages/vue/macros.d.ts +++ b/packages/vue/macros.d.ts @@ -83,9 +83,11 @@ type ToRawRefs = { : T[K] } -export declare function $ref(arg?: T | Ref): RefValue> +export declare function $ref(): RefValue +export declare function $ref(arg: T | Ref): RefValue> -export declare function $shallowRef(arg?: T): RefValue +export declare function $shallowRef(): RefValue +export declare function $shallowRef(arg: T): RefValue export declare function $toRef( object: T,