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

Function addErrors

ark/aot/settingsValidators.ts:498–503  ·  view source on GitHub ↗
(ctx, errors)

Source from the content-addressed store, hash-verified

496 })
497}
498var addErrors = (ctx, errors) => {
499 if (errors === ctx._errors) return
500 const target = errorsOf(ctx)
501 if (target._merge) target._merge(errors, ctx.path)
502 else mergeIssues(target, errors, ctx.path)
503}
504var addMorphErrs = (ctx, errors, key) => {
505 const { path, recv, recvAt } = ctx
506 for (const { reversedPath, result, data } of errors.entries) {

Callers 2

tFunction · 0.90
addMorphErrsFunction · 0.70

Calls 3

errorsOfFunction · 0.70
mergeIssuesFunction · 0.70
_mergeMethod · 0.65

Tested by

no test coverage detected