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

Method expression

ark/schema/structure/required.ts:82–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81export class RequiredNode extends BaseProp<"required"> {
82 get expression(): string {
83 return (this.c.expression ??= composing(
84 () => `${this.keyStr}: ${elided(this.value.expression)}`
85 ))
86 }
87
88 private _errorCtx: NodeErrorContextInput<"required"> | undefined
89 get errorCtx(): NodeErrorContextInput<"required"> {

Callers

nothing calls this directly

Calls 2

composingFunction · 0.90
elidedFunction · 0.90

Tested by

no test coverage detected