Skip to content

Commit

Permalink
test: add type test for nested refs in ref.value
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 26, 2020
1 parent d4c6957 commit 9aaeeed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test-dts/ref.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 9aaeeed

Please sign in to comment.