API reference / @evolu/common / Type / SetError

Interface: SetError<Error>

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

Extends

  • TypeErrorWithReason<"Set", | { kind: "NotSet"; } | { error: Error; index: number; kind: "Element"; }>

Type Parameters

Type ParameterDefault type
Error extends TypeErrorTypeError

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
reasonreadonly| { kind: "NotSet"; } | { error: Error; index: number; kind: "Element"; }The detailed reason for the error, represented as a tagged union.TypeErrorWithReason.reasonpackages/common/src/Type.ts:444
typereadonly"Set"-TypeErrorWithReason.typepackages/common/src/Type.ts:428
valuereadonlyunknownThe value that was received and caused the error. Provides additional context for debugging and validation feedback.TypeErrorWithReason.valuepackages/common/src/Type.ts:434

Was this page helpful?