API Reference / @evolu/common / Type / TupleError

Interface: TupleError<ElementError>

Defined in: packages/common/src/Type.ts:3255

Extends

  • TypeErrorWithReason<"Tuple", | { expected: number; kind: "InvalidLength"; } | { error: ElementError; index: number; kind: "Element"; }>

Type Parameters

Type ParameterDefault type
ElementError extends TypeErrorTypeError

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
reasonreadonly| { expected: number; kind: "InvalidLength"; } | { error: ElementError; index: number; kind: "Element"; }The detailed reason for the error, represented as a tagged union.TypeErrorWithReason.reasonpackages/common/src/Type.ts:264
typereadonly"Tuple"-TypeErrorWithReason.typepackages/common/src/Type.ts:248
valuereadonlyunknownThe value that was received and caused the error. Provides additional context for debugging and validation feedback.TypeErrorWithReason.valuepackages/common/src/Type.ts:254

Was this page helpful?