From: Evan You Date: Wed, 26 Feb 2020 01:38:02 +0000 (-0500) Subject: test: add type test for nested refs in ref.value X-Git-Tag: v3.0.0-alpha.7~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9aaeeede624f3988a1d2f4a4d833d664caaa793b;p=thirdparty%2Fvuejs%2Fcore.git test: add type test for nested refs in ref.value --- diff --git a/test-dts/ref.test-d.ts b/test-dts/ref.test-d.ts index 1ae7c355a4..d4f0725388 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)