API reference › @evolu/common › Type › ArrayError
Defined in: packages/common/src/Type.ts:2544
Extends
TypeErrorWithReason<"Array", | {kind:"NotArray"; } | {error:Error;index:number;kind:"Element"; }>
Properties
reason
readonly reason:
| {
kind: "NotArray";
}
| {
error: Error;
index: number;
kind: "Element";
};
Defined in: packages/common/src/Type.ts:501
The detailed reason for the error, represented as a tagged union.
Inherited from
type
readonly type: "Array";
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.