API reference › @evolu/common › Type › ObjectError
Defined in: packages/common/src/Type.ts:3244
Extends
TypeErrorWithReason<"Object", | {kind:"NotObject"; } | {errors:Partial<PropsErrors>;kind:"Props"; } | {extraKeys:ReadonlyArray<string>;kind:"ExtraKeys"; }>
Properties
reason
readonly reason:
| {
kind: "NotObject";
}
| {
errors: Partial<PropsErrors>;
kind: "Props";
}
| {
extraKeys: readonly string[];
kind: "ExtraKeys";
};
Defined in: packages/common/src/Type.ts:501
The detailed reason for the error, represented as a tagged union.
Inherited from
type
readonly type: "Object";
Defined in: packages/common/src/Type.ts:485
Inherited from
value
readonly value: unknown;
Defined in: packages/common/src/Type.ts:491
The value that was received and caused the error. Provides additional context for debugging and validation feedback.