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

Function tApply

ark/schema/constraint.ts:105–107  ·  view source on GitHub ↗
(data: d["prerequisite"], ctx: InternalTraversal)

Source from the content-addressed store, hash-verified

103 abstract override jsCond(js: NodeCompiler, data: string): string
104
105 tApply(data: d["prerequisite"], ctx: InternalTraversal): void {
106 if (!this.tAllows(data, ctx)) ctx.nodeError(this.errorCtx as never, data)
107 }
108
109 compile(js: NodeCompiler): void {
110 js.checkLeaf(this)

Callers

nothing calls this directly

Calls 2

tAllowsMethod · 0.45
nodeErrorMethod · 0.45

Tested by

no test coverage detected