API Reference / @evolu/common / Type / ObjectError

Interface: ObjectError<PropsErrors>

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

Extends

  • TypeErrorWithReason<"Object", | { kind: "NotObject"; } | { errors: Partial<PropsErrors>; kind: "Props"; } | { extraKeys: ReadonlyArray<string>; kind: "ExtraKeys"; }>

Type Parameters

Type ParameterDefault type
PropsErrors extends Record<string, TypeError>Record<string, TypeError>

Properties

PropertyModifierTypeDescriptionInherited fromDefined in
reasonreadonly| { kind: "NotObject"; } | { errors: Partial<PropsErrors>; kind: "Props"; } | { extraKeys: readonly string[]; kind: "ExtraKeys"; }The detailed reason for the error, represented as a tagged union.TypeErrorWithReason.reasonpackages/common/src/Type.ts:264
typereadonly"Object"-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?