chore(reactive): remove unref type assertion (#8007)

This commit is contained in:
丶远方 2023-04-06 17:15:27 +08:00 committed by GitHub
parent cbe3d42ed3
commit cac1512390
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | (() => T)
* @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
*/
export function unref<T>(ref: MaybeRef<T>): T {
return isRef(ref) ? (ref.value as any) : ref
return isRef(ref) ? ref.value : ref
}
/**