-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Description
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
const a: number= unref( 1 as unknown as ( number| Ref | ComputedRef) )
What is expected?
unref(data) 返回number 类型
What is actually happening?
unref(data) 返回number | ComputedRef ,因此报错不能将类型“number | ComputedRef”分配给类型“number”。
System Info
No response
Any additional comments?
unref参数同时存在ComputedRef,Ref,原类型的时候,返回参数类型会异常。
Metadata
Metadata
Assignees
Labels
No labels