@@ -126,13 +126,13 @@ function createImportTransformerFromProgram(program: ts.Program) {
126
126
127
127
// types can't be default exports, so we just worry about { blah } and { blah as name } exports
128
128
if ( newImportClause . namedBindings && ts . isNamedImports ( newImportClause . namedBindings ) ) {
129
- let newBindings = ts . getMutableClone ( newImportClause . namedBindings ) ;
130
- let newElements = [ ] ;
129
+ const newBindings = ts . getMutableClone ( newImportClause . namedBindings ) ;
130
+ const newElements = [ ] ;
131
131
132
- for ( let spec of newBindings . elements ) {
133
- let ident = spec . name ;
134
- let symbol = checker . getSymbolAtLocation ( ident ) ;
135
- let aliased = checker . getAliasedSymbol ( symbol ) ;
132
+ for ( const spec of newBindings . elements ) {
133
+ const ident = spec . name ;
134
+ const symbol = checker . getSymbolAtLocation ( ident ) ;
135
+ const aliased = checker . getAliasedSymbol ( symbol ) ;
136
136
if ( aliased ) {
137
137
if ( ( aliased . flags & ( ts . SymbolFlags . TypeAlias | ts . SymbolFlags . Interface ) ) > 0 ) {
138
138
continue ; //We found an imported type, don't add to our new import clause
@@ -232,7 +232,7 @@ function compileFileFromMemory(
232
232
233
233
const program = ts . createProgram ( [ dummyFileName ] , compilerOptions , host ) ;
234
234
235
- let transformers = { before : [ createImportTransformerFromProgram ( program ) ] }
235
+ const transformers = { before : [ createImportTransformerFromProgram ( program ) ] }
236
236
237
237
const emitResult = program . emit (
238
238
program . getSourceFile ( dummyFileName ) ,
0 commit comments