Skip to content

Commit cf05a02

Browse files
committed
test: more toValue tests
1 parent 17fefcb commit cf05a02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/dts-test/ref.test-d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ describe('toRef <-> toValue', () => {
361361
// @ts-expect-error ref created from computed ref shuld be readonly
362362
rd.value = 'foo'
363363

364+
expectType<string>(toValue(a))
365+
expectType<string>(toValue(b))
366+
expectType<string>(toValue(c))
367+
expectType<string>(toValue(d))
368+
364369
return {
365370
r: toValue(r),
366371
rb: toValue(rb),

0 commit comments

Comments
 (0)