Skip to content

Commit 89686d5

Browse files
committed
fix: remove incorrect array test
1 parent b54d2ca commit 89686d5

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

test-d/simplify-deep.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,6 @@ declare const flattenProperties: {
3131

3232
expectType<SimplifyDeep<Properties1 & Properties2>>(flattenProperties);
3333

34-
// Array
35-
type ArrayType = Array<{
36-
a: string;
37-
}>;
38-
39-
declare const flattenProperties2: {
40-
arrayType: Array<{
41-
a: string;
42-
}>;
43-
};
44-
expectType<SimplifyDeep<{arrayType: ArrayType}>>(flattenProperties2);
45-
4634
declare function testArraySimplification(arg: {foo: Array<{[x: string]: string}>}): void;
4735

4836
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
@@ -54,5 +42,3 @@ interface BarBaz {
5442
// This would fail if `SimplifyDeep` did not simplify arrays,
5543
// because interfaces being open are not compatible with index signatures.
5644
testArraySimplification({} as SimplifyDeep<{foo: BarBaz[]}>);
57-
58-
declare function bar(object: {[x: string]: string}): void;

0 commit comments

Comments
 (0)