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