Skip to content

Commit cb8a25b

Browse files
committed
chore: fix import
1 parent 2077eed commit cb8a25b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

test-dts/reactivity.test-d.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
import { reactive, Ref, ref } from '@vue/reactivity'
2-
import { readonly, describe, expectError, markRaw, expectType } from './index'
1+
import {
2+
readonly,
3+
describe,
4+
expectError,
5+
markRaw,
6+
expectType,
7+
reactive,
8+
Ref,
9+
ref
10+
} from './index'
311

412
describe('should support DeepReadonly', () => {
513
const r = readonly({ obj: { k: 'v' } })
@@ -11,7 +19,7 @@ describe('should support DeepReadonly', () => {
1119

1220
describe('should support markRaw', () => {
1321
class Test<T> {
14-
item = {} as T
22+
item = {} as Ref<T>
1523
}
1624
const test = new Test<number>()
1725
const plain = {
@@ -30,7 +38,7 @@ describe('should support markRaw', () => {
3038
})
3139

3240
expectType<Test<number>>(r.class.raw)
33-
// TODO make this fail
41+
// @ts-expect-error it should unwrap
3442
expectType<Test<number>>(r.class.reactive)
3543

3644
expectType<Ref<number>>(r.plain.raw.ref)

0 commit comments

Comments
 (0)