API reference / @evolu/common / Type / LiteralError
Interface: LiteralError<T>
Defined in: packages/common/src/Type.ts:2150
Extends
TypeError<"Literal">
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends Literal | Literal |
Properties
| Property | Modifier | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|---|
expected | readonly | T | - | - | packages/common/src/Type.ts:2152 |
type | readonly | "Literal" | - | TypeError.type | packages/common/src/Type.ts:392 |
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:398 |