Skip to content

Commit acfcc55

Browse files
authored
types(ref): fix dts test for ref (#965)
1 parent e33291b commit acfcc55

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test-dts/ref.test-d.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { expectType } from 'tsd'
2-
import { Ref, ref, isRef, unref, UnwrapRef } from './index'
2+
import { Ref, ref, isRef, unref } from './index'
33

44
function plainType(arg: number | Ref<number>) {
55
// ref coercing
@@ -29,7 +29,9 @@ function plainType(arg: number | Ref<number>) {
2929
}
3030

3131
// with symbol
32-
expectType<IteratorFoo | null>(unref(ref<IteratorFoo | null>(null)))
32+
expectType<Ref<IteratorFoo | null | undefined>>(
33+
ref<IteratorFoo | null | undefined>()
34+
)
3335
}
3436

3537
plainType(1)

0 commit comments

Comments
 (0)