API reference / @evolu/common / Type / RecordError

Interface: RecordError<KeyError, ValueError>

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

Extends

  • TypeErrorWithReason<"Record", | { kind: "NotRecord"; } | { error: KeyError; key: unknown; kind: "Key"; } | { error: ValueError; key: unknown; kind: "Value"; }>

Type Parameters

Type ParameterDefault type
KeyError extends TypeErrorTypeError
ValueError extends TypeErrorTypeError

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
reasonreadonly| { kind: "NotRecord"; } | { error: KeyError; key: unknown; kind: "Key"; } | { error: ValueError; key: unknown; kind: "Value"; }The detailed reason for the error, represented as a tagged union.TypeErrorWithReason.reasonpackages/common/src/Type.ts:261
typereadonly"Record"-TypeErrorWithReason.typepackages/common/src/Type.ts:245
valuereadonlyunknownThe value that was received and caused the error. Provides additional context for debugging and validation feedback.TypeErrorWithReason.valuepackages/common/src/Type.ts:251

Was this page helpful?