EnumValueType
Import from @varavel/vdl-plugin-sdk.
EnumValueType exposes the generated enum values and runtime helpers for EnumValueType.
Type Declaration
| Name | Type | Description |
|---|---|---|
hydrate() |
(input) => EnumValueType |
Hydrates a validated EnumValueType value. Enums return the input unchanged to keep the generated API uniform. |
Int |
EnumValueType |
Represents the Int member of the EnumValueType enum. |
parse() |
(json) => EnumValueType |
Parses a JSON string into a validated and hydrated EnumValueType value. |
String |
EnumValueType |
Represents the String member of the EnumValueType enum. |
validate() |
(input, path?) => string | null |
Performs structural enum validation only (membership in EnumValueType); it does not enforce business rules. |
values() |
() => EnumValueType[] |
Returns every declared EnumValueType value in definition order. |