( imports: Repointed["imports"], rename: (specifier: string) => string )
| 695 | } |
| 696 | |
| 697 | const writeImports = ( |
| 698 | imports: Repointed["imports"], |
| 699 | rename: (specifier: string) => string |
| 700 | ) => |
| 701 | imports |
| 702 | .map( |
| 703 | ([specifier, names]) => |
| 704 | `import { ${names.join(", ")} } from ${JSON.stringify(rename(specifier))}` |
| 705 | ) |
| 706 | .join("\n") |
| 707 | |
| 708 | interface UnitModule { |
| 709 | specifier: string |