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

Function writeExpected

ark/schema/shared/render.ts:220–225  ·  view source on GitHub ↗
(
	error: ArkError,
	expected: string | ((error: never, locale: Locale.Resolved) => string),
	locale: Locale.Resolved
)

Source from the content-addressed store, hash-verified

218}
219
220const writeExpected = (
221 error: ArkError,
222 expected: string | ((error: never, locale: Locale.Resolved) => string),
223 locale: Locale.Resolved
224): string =>
225 typeof expected === "string" ? expected : expected(error as never, locale)
226
227// whether description is arktype's default for the node
228const isDefaultDescription = (

Callers 3

localeExpectedFunction · 0.85
writeInEnFunction · 0.85
isDefaultDescriptionFunction · 0.85

Calls 1

expectedFunction · 0.50

Tested by

no test coverage detected