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

Method failsUnion

ark/schema/shared/errors.ts:454–462  ·  view source on GitHub ↗
(
			branches: readonly CompactApply[],
			site: UnionSite,
			data: unknown
		)

Source from the content-addressed store, hash-verified

452 }
453
454 override failsUnion(
455 branches: readonly CompactApply[],
456 site: UnionSite,
457 data: unknown
458 ): boolean {
459 return this.isElsewhere() ?
460 this.skip()
461 : super.failsUnion(branches, site, data)
462 }
463
464 override addError<error extends ArkIssue>(error: error): error {
465 if (this.branches.length === 0) {

Callers

nothing calls this directly

Calls 2

isElsewhereMethod · 0.80
skipMethod · 0.80

Tested by

no test coverage detected