API reference / @evolu/common / Type / TypeErrorWithReason
Interface: TypeErrorWithReason<Name, Reason>
Defined in: packages/common/src/Type.ts:374
Extends
TypeError<Name>
Extended by
Type Parameters
| Type Parameter | Default type |
|---|---|
Name extends TypeName | TypeName |
Reason extends object | object |
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
reason | readonly | Reason | The detailed reason for the error, represented as a tagged union. | - | packages/common/src/Type.ts:381 |
type | readonly | Name | - | TypeError.type | packages/common/src/Type.ts:365 |
value | readonly | unknown | The value that was received and caused the error. Provides additional context for debugging and validation feedback. | TypeError.value | packages/common/src/Type.ts:371 |