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

This commit is contained in:
fishDog 2021-09-05 00:04:12 +08:00 committed by GitHub
parent 3ad9dc4880
commit 5852cc8d82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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