MCPcopy Create free account
hub / github.com/arktypeio/arktype / writeImports

Function writeImports

ark/aot/flat.ts:697–706  ·  view source on GitHub ↗
(
	imports: Repointed["imports"],
	rename: (specifier: string) => string
)

Source from the content-addressed store, hash-verified

695}
696
697const 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
708interface UnitModule {
709 specifier: string

Callers 1

editFunction · 0.70

Calls 2

renameFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected