@@ -135,13 +135,13 @@ function createImportTransformerFromProgram(program: ts.Program) {
135
135
136
136
// types can't be default exports, so we just worry about { blah } and { blah as name } exports
137
137
if ( newImportClause . namedBindings && ts . isNamedImports ( newImportClause . namedBindings ) ) {
138
- let newBindings = ts . getMutableClone ( newImportClause . namedBindings ) ;
139
- let newElements = [ ] ;
138
+ const newBindings = ts . getMutableClone ( newImportClause . namedBindings ) ;
139
+ const newElements = [ ] ;
140
140
141
- for ( let spec of newBindings . elements ) {
142
- let ident = spec . name ;
143
- let symbol = checker . getSymbolAtLocation ( ident ) ;
144
- let aliased = checker . getAliasedSymbol ( symbol ) ;
141
+ for ( const spec of newBindings . elements ) {
142
+ const ident = spec . name ;
143
+ const symbol = checker . getSymbolAtLocation ( ident ) ;
144
+ const aliased = checker . getAliasedSymbol ( symbol ) ;
145
145
if ( aliased ) {
146
146
if ( ( aliased . flags & ( ts . SymbolFlags . TypeAlias | ts . SymbolFlags . Interface ) ) > 0 ) {
147
147
continue ; //We found an imported type, don't add to our new import clause
@@ -242,7 +242,7 @@ function compileFileFromMemory(
242
242
243
243
const program = ts . createProgram ( [ dummyFileName ] , compilerOptions , host ) ;
244
244
245
- let transformers = { before : [ createImportTransformerFromProgram ( program ) ] }
245
+ const transformers = { before : [ createImportTransformerFromProgram ( program ) ] }
246
246
247
247
const emitResult = program . emit (
248
248
program . getSourceFile ( dummyFileName ) ,
0 commit comments