Skip to content

Commit

Permalink
test: more toValue tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Mar 31, 2023
1 parent 17fefcb commit cf05a02
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/dts-test/ref.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,11 @@ describe('toRef <-> toValue', () => {
// @ts-expect-error ref created from computed ref shuld be readonly
rd.value = 'foo'

expectType<string>(toValue(a))
expectType<string>(toValue(b))
expectType<string>(toValue(c))
expectType<string>(toValue(d))

return {
r: toValue(r),
rb: toValue(rb),
Expand Down

0 comments on commit cf05a02

Please sign in to comment.