(d: tsmorph.ImportDeclaration)
| 518 | } |
| 519 | |
| 520 | function removeEmptyImport(d: tsmorph.ImportDeclaration) { |
| 521 | if ( |
| 522 | d.getNamedImports().length === 0 && |
| 523 | d.getNamespaceImport() === undefined && |
| 524 | d.getDefaultImport() === undefined |
| 525 | ) { |
| 526 | d.remove(); |
| 527 | } |
| 528 | } |
| 529 | |
| 530 | function maybePrependReqVar( |
| 531 | method: |