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

Function isCustomIssue

ark/schema/shared/issues.ts:732–740  ·  view source on GitHub ↗
(issue: ArkIssue)

Source from the content-addressed store, hash-verified

730 * its path as that would. A union listing its errors wrote its own line
731 */
732export const isCustomIssue = (issue: ArkIssue): boolean =>
733 (
734 (listsUnions && issue._l !== undefined) ||
735 (labelsValues && issue._n !== undefined)
736 ) ?
737 false
738 : writesText &&
739 issue.message !== undefined &&
740 !issue.message.startsWith(messageOf(issue))
741
742/**
743 * @internal notes that an issue's message is one configured for its code, as

Callers 4

validateFunction · 0.90
sharedMessageOfFunction · 0.90
errorOfIssueFunction · 0.90
runtime.tsFile · 0.50

Calls 1

messageOfFunction · 0.70

Tested by

no test coverage detected