Explorar o código

test: add type test for nested refs in ref.value

Evan You %!s(int64=6) %!d(string=hai) anos
pai
achega
9aaeeede62
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      test-dts/ref.test-d.ts

+ 1 - 0
test-dts/ref.test-d.ts

@@ -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)