Skip to content

LiteralValue

Import from @varavel/vdl-plugin-sdk.

LiteralValue: object;

LiteralValue exposes the generated runtime helpers for LiteralValue.

Type Declaration

Name Type Description
hydrate() (input) => LiteralValue Hydrates a validated LiteralValue value into its runtime representation.
parse() (json) => LiteralValue Parses a JSON string into a validated and hydrated LiteralValue value.
validate() (input, path?) => string | null Performs structural validation for LiteralValue (required field presence and basic type shape only); it does not enforce business rules.