API reference@evolu/commonType › 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

TypeErrorWithReason.reason


type

readonly type: "Array";

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

Inherited from

TypeErrorWithReason.type


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.

Inherited from

TypeErrorWithReason.value