API reference / @evolu/common / Type / ObjectWithRecordError

Interface: ObjectWithRecordError<PropsErrors, KeyError, ValueError>

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

Extends

  • TypeErrorWithReason<"ObjectWithRecord", | { kind: "NotObject"; } | { errors: Partial<PropsErrors>; kind: "Props"; } | { error: KeyError; key: unknown; kind: "IndexKey"; } | { error: ValueError; key: string; kind: "IndexValue"; }>

Type Parameters

Type ParameterDefault type
PropsErrors extends Record<string, TypeError>Record<string, TypeError>
KeyError extends TypeErrorTypeError
ValueError extends TypeErrorTypeError

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
reasonreadonly| { kind: "NotObject"; } | { errors: Partial<PropsErrors>; kind: "Props"; } | { error: KeyError; key: unknown; kind: "IndexKey"; } | { error: ValueError; key: string; kind: "IndexValue"; }The detailed reason for the error, represented as a tagged union.TypeErrorWithReason.reasonpackages/common/src/Type.ts:261
typereadonly"ObjectWithRecord"-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?