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

Function writeUnreadCommonJsMessage

ark/aot/graph.ts:7111–7115  ·  view source on GitHub ↗
(
	path: string,
	name: string
)

Source from the content-addressed store, hash-verified

7109// a module tsc didn't write, or an export it writes as statements that run,
7110// like an enum's
7111export const writeUnreadCommonJsMessage = (
7112 path: string,
7113 name: string
7114): string =>
7115 `${path} is CommonJS, which the build reads only where it sets \`exports.${name}\` once, to a value, as tsc writes \`export const ${name} = ...\``
7116
7117const importedNameOf = (
7118 module: SourceModule,

Callers 1

exportOfMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected