Skip to content

Commit

Permalink
chore(reactive): remove unref type assertion (#8007)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred-Skyblue authored Apr 6, 2023
1 parent cbe3d42 commit cac1512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/reactivity/src/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

/**
Expand Down

1 comment on commit cac1512

@vercel
Copy link

@vercel vercel bot commented on cac1512 Apr 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.