瀏覽代碼

fix(types/ref-transform): fix $$() type

fishDog 4 年之前
父節點
當前提交
5852cc8d82
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/vue/ref-macros.d.ts

+ 1 - 1
packages/vue/ref-macros.d.ts

@@ -28,7 +28,7 @@ declare function _$<T extends object>(arg?: T): ShallowUnwrapRef<T>
 /**
  * Vue ref transform macro for accessing underlying refs of reactive varaibles.
  */
-declare function _$$<T>(value: T): ComputedRef<T>
+declare function _$$<T>(value: ComputedRefValue<T>): ComputedRef<T>
 declare function _$$<T>(
   value: WritableComputedRefValue<T>
 ): WritableComputedRef<T>