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