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

Function suppliedText

ark/schema/shared/errors.ts:952–955  ·  view source on GitHub ↗
(
	error: ArkError,
	slot: "expected" | "actual" | "message"
)

Source from the content-addressed store, hash-verified

950}
951
952export const suppliedText = (
953 error: ArkError,
954 slot: "expected" | "actual" | "message"
955): string | undefined => inputOf(error)?.[slot]
956
957// records the locale an error was written in when it differs from its config's
958// (e.g. a function locale or summaryIn), so lineOf(error) formats it identically

Callers 2

writeFunction · 0.90
sharedMessageOfFunction · 0.85

Calls 1

inputOfFunction · 0.70

Tested by

no test coverage detected