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

Function condition

ark/schema/shared/compile.ts:677–679  ·  view source on GitHub ↗
(node: BaseNode)

Source from the content-addressed store, hash-verified

675 }
676
677 condition(node: BaseNode): string {
678 return node.jsCond?.(this, this.data) ?? this.inv(node)
679 }
680
681 check(node: BaseNode, opts?: CheckOptions): this {
682 const arg = opts?.arg ?? this.data

Callers 2

shiftUntilMethod · 0.85
shiftUntilEscapableMethod · 0.85

Calls 2

jsCondMethod · 0.45
invMethod · 0.45

Tested by

no test coverage detected