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

Function propStringOf

ark/schema/shared/errorReaders.ts:80–81  ·  view source on GitHub ↗
(error: PathedIssue)

Source from the content-addressed store, hash-verified

78// a standalone validator's issue, or one another copy of arktype wrote, holds
79// no propString, so its path is written as arktype would write it
80const propStringOf = (error: PathedIssue): string =>
81 error.propString ?? stringifyPath(error.path)
82
83const addEntry = <v>(result: Record<string, v[]>, k: string, value: v) => {
84 if (hasOwn(result, k)) result[k].push(value)

Callers 3

byPathFunction · 0.85
flatByPathFunction · 0.85
flatMessagesByPathFunction · 0.85

Calls 1

stringifyPathFunction · 0.90

Tested by

no test coverage detected