From 9aaeeede624f3988a1d2f4a4d833d664caaa793b Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 25 Feb 2020 20:38:02 -0500 Subject: [PATCH] test: add type test for nested refs in ref.value --- test-dts/ref.test-d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test-dts/ref.test-d.ts b/test-dts/ref.test-d.ts index 1ae7c355..d4f07253 100644 --- a/test-dts/ref.test-d.ts +++ b/test-dts/ref.test-d.ts @@ -19,6 +19,7 @@ function foo(arg: number | Ref) { foo: ref(1) }) expectType>(nestedRef) + expectType<{ foo: number }>(nestedRef.value) } foo(1)