API Reference / @evolu/common / Type / ArrayError
Interface: ArrayError<Error>
Defined in: packages/common/src/Type.ts:2083
Extends
TypeErrorWithReason
<"Array"
, | {kind
:"NotArray"
; } | {error
:Error
;index
:number
;kind
:"Element"
; }>
Type Parameters
Type Parameter | Default type |
---|---|
Error extends TypeError | TypeError |
Properties
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
reason | readonly | | { kind : "NotArray" ; } | { error : Error ; index : number ; kind : "Element" ; } | The detailed reason for the error, represented as a tagged union. | TypeErrorWithReason .reason | packages/common/src/Type.ts:264 |
type | readonly | "Array" | - | TypeErrorWithReason .type | packages/common/src/Type.ts:248 |
value | readonly | unknown | The value that was received and caused the error. Provides additional context for debugging and validation feedback. | TypeErrorWithReason .value | packages/common/src/Type.ts:254 |