API Reference / @evolu/common / Type / LiteralError
Interface: LiteralError<T>
Defined in: packages/common/src/Type.ts:1829
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:1831 |
type | readonly | "Literal" | - | TypeError .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. | TypeError .value | packages/common/src/Type.ts:254 |