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

Function mergeIssues

ark/schema/shared/issuesLean.ts:341–353  ·  view source on GitHub ↗
(
	errors: Issues,
	merged: Issues,
	prefix: array<PropertyKey>
)

Source from the content-addressed store, hash-verified

339export const throwOnDefault = (errors: Issues): never => errors.throw()
340
341export const mergeIssues = (
342 errors: Issues,
343 merged: Issues,
344 prefix: array<PropertyKey>
345): void => {
346 for (const issue of merged.issues) {
347 errors._.push(
348 listsUnions && issue._m ?
349 issue._m(prefix)
350 : movedIssue(issue, [...prefix, ...issue.path])
351 )
352 }
353}
354
355// whether an issue's message is a sentence of its own, as issues.ts's isCustomIssue
356export const isCustomIssue = (issue: ArkIssue): boolean =>

Callers

nothing calls this directly

Calls 3

movedIssueFunction · 0.70
_mMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected