Skip to content
This repository was archived by the owner on Aug 20, 2024. It is now read-only.

Commit bc07571

Browse files
committed
refactor: Remove need for legacy code tests
1 parent 79e9112 commit bc07571

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

test-d/index.test-d.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { expectType, expectAssignable, expectError } from 'tsd';
22

33
import { KEYS, getKeys, unionWith, VisitorKeys } from "../";
44

5-
type VisitorKeysWritable = { [type: string]: ReadonlyArray<string> };
6-
75
const assignmentExpression = {
86
type: "AssignmentExpression",
97
operator: "=",
@@ -39,29 +37,14 @@ expectType<{readonly [type: string]: readonly string[]}>(unionWith({
3937
TestInterface2: ["expression"]
4038
}));
4139

42-
const keys: {
43-
[type: string]: readonly string[]
44-
} = {
45-
TestInterface1: ["left", "right"]
46-
};
47-
4840
const readonlyKeys: {
4941
readonly [type: string]: readonly string[]
5042
} = {
5143
TestInterface1: ["left", "right"]
5244
};
5345

54-
expectAssignable<VisitorKeysWritable>(keys);
55-
5646
expectAssignable<VisitorKeys>(readonlyKeys);
5747

58-
expectError(() => {
59-
const erring: VisitorKeysWritable = {
60-
TestInterface1: ["left", "right"]
61-
};
62-
erring.TestInterface1 = "badType";
63-
});
64-
6548
// https://github.com/SamVerschueren/tsd/issues/143
6649
// expectError(() => {
6750
// const erring: VisitorKeys = {

0 commit comments

Comments
 (0)