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

Function issuesOf

ark/schema/shared/issuesLean.ts:293–302  ·  view source on GitHub ↗
(
	apply: CompactApply,
	data: unknown,
	errors: Issues
)

Source from the content-addressed store, hash-verified

291}
292
293export const issuesOf = (
294 apply: CompactApply,
295 data: unknown,
296 errors: Issues
297): ArkIssue[] => {
298 apply(data, errors)
299 // data a write or a getter has made valid since fails as a whole
300 if (!errors._.length) errors._e(data, "predicate", "valid", "is invalid")
301 return errors._
302}
303
304export const foundErrors = (
305 apply: CompactApply,

Callers 1

throwIssuesFunction · 0.70

Calls 2

_eMethod · 0.65
applyFunction · 0.50

Tested by

no test coverage detected