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