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

Function messageIn

ark/schema/shared/errors.ts:727–728  ·  view source on GitHub ↗
(error: ArkError, locale: Locale<string>)

Source from the content-addressed store, hash-verified

725 * where its line of `summaryIn(locale)` is `name must be a string`.
726 */
727export const messageIn = (error: ArkError, locale: Locale<string>): string =>
728 writtenIn(error, resolveLocale(locale)).message
729
730// what data a write or a getter has made valid since is rejected with, and
731// what errors "none" says: arktype's own text, so it's written after a path

Callers 6

locale.test.tsFile · 0.90
errors.test.tsFile · 0.90
formatErrorInFunction · 0.85
config.test.tsFile · 0.85
de.test.tsFile · 0.85

Calls 2

resolveLocaleFunction · 0.85
writtenInFunction · 0.70

Tested by 1

formatErrorInFunction · 0.68