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

Interface FailureContext

ark/schema/shared/issues.ts:117–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 * only `undefined`: an optional key is passed nothing
116 */
117export interface FailureContext {
118 _e(
119 data: unknown,
120 code: ArkErrorCode,
121 expected?: string,
122 message?: string,
123 text?: SiteContext["text"]
124 ): boolean | undefined
125 _k(
126 apply: CompactApply,
127 data: unknown,
128 key: PropertyKey,
129 ...missing: MissingText
130 ): boolean | undefined
131}
132
133/**
134 * where arktype's own compiled code reports failures: _at fails a site, whose

Callers 16

_kMethod · 0.65
_Method · 0.65
failsSiteFunction · 0.65
foundErrorsFunction · 0.65
runtime.tsFile · 0.65
traverse.test.tsFile · 0.65
security.test.tsFile · 0.65
failsKeySiteFunction · 0.65
failsValueFunction · 0.65
checkerFunction · 0.65
failsValueFunction · 0.65

Implementers 10

ReadIssuesark/schema/shared/issues.ts
UnreadIssuesark/schema/shared/issues.ts
UnreadArkIssuesark/schema/shared/issues.ts
ArkIssuesark/schema/shared/issues.ts
InternalTraversalark/schema/shared/traversal.ts
ReadIssuesark/schema/shared/issuesLean.ts
ArkErrorsark/schema/shared/issuesLean.ts
UnreadArkIssuesark/aot/settingsValidators.ts
ArkIssuesark/aot/settingsValidators.ts
ArkErrorsark/schema/shared/issuesNoneLean.ts

Calls

no outgoing calls

Tested by

no test coverage detected