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

Function isInvalidInput

ark/schema/shared/errors.ts:738–739  ·  view source on GitHub ↗
(input: ArkErrorContextInput | undefined)

Source from the content-addressed store, hash-verified

736})
737
738const isInvalidInput = (input: ArkErrorContextInput | undefined): boolean =>
739 input?.message === "is invalid" && input.expected === "valid"
740
741/** an issue errors "none" added, written in en as saying its data is invalid */
742export const invalidError = (

Callers 1

isCustomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected