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

Function write

ark/aot/output.ts:49–57  ·  view source on GitHub ↗
(names: string[], combines = true)

Source from the content-addressed store, hash-verified

47 inline: boolean
48): StandaloneModules => {
49 const write = (names: string[], combines = true): StandaloneModules => {
50 const exports = Object.fromEntries(
51 names.map(name => [name, exportsByName[name]])
52 )
53 return (inline ? precompileStandalone : precompileStandaloneModules)(
54 exports,
55 combines ? opts : { ...opts, combines: false }
56 )
57 }
58 let names = Object.keys(exportsByName)
59 let written: StandaloneModules
60 try {

Callers 8

writeValidatorsFunction · 0.70
sitedKeepsFunction · 0.70
writtenFunction · 0.70
defaultedMethod · 0.70
endFunction · 0.70
bakeMethod · 0.70
writePlannedMethod · 0.70
install_if_neededMethod · 0.50

Calls 1

mapMethod · 0.65

Tested by

no test coverage detected