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

Function writeCheck

ark/type/standalone/combinators.ts:592–598  ·  view source on GitHub ↗
(js: CombinatorCompiler, node: BaseNode)

Source from the content-addressed store, hash-verified

590}
591
592const writeCheck = (js: CombinatorCompiler, node: BaseNode): string => {
593 const { message } = checkOf(node)!
594 const check = writeDescribedCheck(js, node)
595 return message === undefined ? check : (
596 writeCall("saying", check, JSON.stringify(message))
597 )
598}
599
600const writeDescribedCheck = (
601 js: CombinatorCompiler,

Callers 3

writeShapeFunction · 0.85
writeCheckerFunction · 0.85

Calls 3

checkOfFunction · 0.85
writeDescribedCheckFunction · 0.85
writeCallFunction · 0.85

Tested by

no test coverage detected