mirror of https://github.com/vuejs/core.git
chore(reactive): remove unref type assertion (#8007)
This commit is contained in:
parent
cbe3d42ed3
commit
cac1512390
|
@ -209,7 +209,7 @@ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | (() => T)
|
||||||
* @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
|
* @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
|
||||||
*/
|
*/
|
||||||
export function unref<T>(ref: MaybeRef<T>): T {
|
export function unref<T>(ref: MaybeRef<T>): T {
|
||||||
return isRef(ref) ? (ref.value as any) : ref
|
return isRef(ref) ? ref.value : ref
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue