Skip to content

Commit e97c402

Browse files
committed
Fix linting issues
1 parent 74287fe commit e97c402

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test-d/unwrap-partial.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import {expectNever, expectType} from 'tsd';
2-
import type {EmptyObject, UnwrapPartial} from '../index.js';
2+
import type {EmptyObject, UnwrapPartial} from '../index.d.ts';
33

44
type TestType = {
55
a: string;
66
b: number;
7-
}
7+
};
88

99
expectType<TestType>({} as UnwrapPartial<Partial<TestType>>);
1010
expectType<TestType>({} as UnwrapPartial<{a?: string; b?: number}>);
@@ -41,7 +41,7 @@ expectNever({} as UnwrapPartial<TestTypeWithOptionalProps>);
4141
// `UnwrapPartial` preserves nested `Partial` properties
4242
type TestTypeWithPartialProp = TestType & {
4343
c: Partial<TestType>;
44-
}
44+
};
4545

4646
expectType<TestTypeWithPartialProp>({} as UnwrapPartial<Partial<TestTypeWithPartialProp>>);
4747
expectNever({} as UnwrapPartial<TestTypeWithPartialProp>);
@@ -57,7 +57,7 @@ expectNever({} as UnwrapPartial<TestTypeWithReadonlyProps>);
5757
// `UnwirapPartial` works with methods
5858
type TestTypeWithMethod = {
5959
c(): void;
60-
}
60+
};
6161

6262
expectType<TestTypeWithMethod>({} as UnwrapPartial<Partial<TestTypeWithMethod>>);
6363
expectNever({} as UnwrapPartial<TestTypeWithMethod>);
@@ -72,7 +72,7 @@ expectNever({} as UnwrapPartial<TestType | AnotherTestType>);
7272
// `UnwrapPartial` works with index signatures
7373
type ArrayLikeTestType = {
7474
[index: number]: string;
75-
}
75+
};
7676

7777
expectType<ArrayLikeTestType>({} as UnwrapPartial<Partial<ArrayLikeTestType>>);
7878
expectType<Record<number, string>>({} as UnwrapPartial<Partial<Record<number, string>>>);

0 commit comments

Comments
 (0)