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