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

Function noteLine

ark/schema/shared/errors.ts:987–989  ·  view source on GitHub ↗
(error: ArkIssue, line: string)

Source from the content-addressed store, hash-verified

985// standalone validator's issue holds it, where another copy of arktype reads
986// it too. Not enumerable, so it's neither copied, printed nor serialized
987const noteLine = (error: ArkIssue, line: string): void => {
988 Object.defineProperty(error, "_l", { value: line, configurable: true })
989}
990
991// a union's or intersection's message is about its own value, and is what a
992// form shows beside its path, so the paths of its errors are written from its

Callers 4

errorOfIssueFunction · 0.85
writeRelativeFunction · 0.85
asTemplatedFunction · 0.85
unwrittenErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected