Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.

Commit 3a18103

Browse files
committed
Remove unnecessary any's
1 parent 47b835f commit 3a18103

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TypeScriptGenerator.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function selectionsToAST(
171171
// would set the type to diff(string, set of listed concrete types), but
172172
// this doesn't exist in Flow at the time.
173173
types.push(
174-
Array.from(typenameAliases).map((typenameAlias: any) => {
174+
Array.from(typenameAliases).map(typenameAlias => {
175175
const otherProp = objectTypeProperty(
176176
typenameAlias,
177177
ts.createLiteralTypeNode(ts.createLiteral("%other"))
@@ -1023,7 +1023,7 @@ function getEnumDefinitions(
10231023
return exportType(
10241024
name,
10251025
ts.createUnionTypeNode(
1026-
values.map((value: any) => stringLiteralTypeAnnotation(value))
1026+
values.map(value => stringLiteralTypeAnnotation(value))
10271027
)
10281028
);
10291029
});

0 commit comments

Comments
 (0)