ConstantDef
Import from @varavel/vdl-plugin-sdk.
ConstantDef exposes the generated runtime helpers for ConstantDef.
Type Declaration
| Name | Type | Description |
|---|---|---|
hydrate() |
(input) => ConstantDef |
Hydrates a validated ConstantDef value into its runtime representation. |
parse() |
(json) => ConstantDef |
Parses a JSON string into a validated and hydrated ConstantDef value. |
validate() |
(input, path?) => string | null |
Performs structural validation for ConstantDef (required field presence and basic type shape only); it does not enforce business rules. |