VDL Plugin SDK

LiteralValue

Import from @varavel/vdl-plugin-sdk.

LiteralValue: object;

LiteralValue exposes the generated runtime helpers for LiteralValue.

Type Declaration

NameTypeDescription
hydrate()(input) => LiteralValueHydrates a validated LiteralValue value into its runtime representation.
parse()(json) => LiteralValueParses a JSON string into a validated and hydrated LiteralValue value.
validate()(input, path?) => string | nullPerforms structural validation for LiteralValue (required field presence and basic type shape only); it does not enforce business rules.