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

Commit

Permalink
refactor: Remove need for legacy code test
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Feb 11, 2022
1 parent 79e9112 commit 1b493c2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test-d/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,12 @@ expectType<{readonly [type: string]: readonly string[]}>(unionWith({
TestInterface2: ["expression"]
}));

const keys: {
[type: string]: readonly string[]
} = {
TestInterface1: ["left", "right"]
};

const readonlyKeys: {
readonly [type: string]: readonly string[]
} = {
TestInterface1: ["left", "right"]
};

expectAssignable<VisitorKeysWritable>(keys);

expectAssignable<VisitorKeys>(readonlyKeys);

expectError(() => {
Expand Down

0 comments on commit 1b493c2

Please sign in to comment.