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

Function invalidInput

ark/schema/shared/errors.ts:733–736  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

731// what errors "none" says: arktype's own text, so it's written after a path
732// as a message arktype writes is
733const invalidInput = (): CustomErrorInput => ({
734 expected: "valid",
735 message: "is invalid"
736})
737
738const isInvalidInput = (input: ArkErrorContextInput | undefined): boolean =>
739 input?.message === "is invalid" && input.expected === "valid"

Callers 3

_Method · 0.70
_firstMethod · 0.70
invalidErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected