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

Commit 0d259e2

Browse files
committed
remove let
1 parent 152beb4 commit 0d259e2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/TypeScriptGenerator.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,10 @@ const MODULE_IMPORT_FIELD = "MODULE_IMPORT_FIELD";
4848
const DIRECTIVE_NAME = "raw_response_type";
4949

5050
export const generate: TypeGenerator["generate"] = (schema, node, options) => {
51-
let ast: ts.Statement[] = IRVisitor.visit(
52-
node,
53-
createVisitor(schema, options)
51+
const ast: ts.Statement[] = aggregateRuntimeImports(
52+
IRVisitor.visit(node, createVisitor(schema, options))
5453
);
5554

56-
ast = aggregateRuntimeImports(ast);
57-
5855
const printer = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed });
5956

6057
const resultFile = ts.createSourceFile(

0 commit comments

Comments
 (0)