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

Function compileRootApply

ark/schema/node.ts:2226–2230  ·  view source on GitHub ↗
(node: BaseRoot)

Source from the content-addressed store, hash-verified

2224 config.errors === "all" ? rootApplyRuntime : $ark.errorModes![config.errors]
2225
2226const compileRootApply = (node: BaseRoot): RootApply =>
2227 new DynamicFunction<(...args: unknown[]) => RootApply>(
2228 ...rootApplyParams,
2229 writeRootApply(node, node.id)
2230 )(node, node.$.cfg, ...Object.values(rootApplyRuntimeOf(node.$.cfg)))
2231
2232export const writeInnerJson = (node: BaseNode): JsonObject => {
2233 const json: JsonObject = {}

Callers 1

initRootApplyFunction · 0.85

Calls 2

writeRootApplyFunction · 0.90
rootApplyRuntimeOfFunction · 0.85

Tested by

no test coverage detected