test: add type test for nested refs in ref.value
This commit is contained in:
@@ -19,6 +19,7 @@ function foo(arg: number | Ref<number>) {
|
|||||||
foo: ref(1)
|
foo: ref(1)
|
||||||
})
|
})
|
||||||
expectType<Ref<{ foo: number }>>(nestedRef)
|
expectType<Ref<{ foo: number }>>(nestedRef)
|
||||||
|
expectType<{ foo: number }>(nestedRef.value)
|
||||||
}
|
}
|
||||||
|
|
||||||
foo(1)
|
foo(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user