Skip to content

Commit cac1512

Browse files
chore(reactive): remove unref type assertion (#8007)
1 parent cbe3d42 commit cac1512

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/reactivity/src/ref.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export type MaybeRefOrGetter<T = any> = MaybeRef<T> | (() => T)
209209
* @see {@link https://vuejs.org/api/reactivity-utilities.html#unref}
210210
*/
211211
export function unref<T>(ref: MaybeRef<T>): T {
212-
return isRef(ref) ? (ref.value as any) : ref
212+
return isRef(ref) ? ref.value : ref
213213
}
214214

215215
/**

0 commit comments

Comments
 (0)