VDL Plugin SDK

PrimitiveType

Import from @varavel/vdl-plugin-sdk.

PrimitiveType: object;

PrimitiveType exposes the generated enum values and runtime helpers for PrimitiveType.

Type Declaration

NameTypeDescription
BoolPrimitiveTypeRepresents the Bool member of the PrimitiveType enum.
DatetimePrimitiveTypeRepresents the Datetime member of the PrimitiveType enum.
FloatPrimitiveTypeRepresents the Float member of the PrimitiveType enum.
hydrate()(input) => PrimitiveTypeHydrates a validated PrimitiveType value. Enums return the input unchanged to keep the generated API uniform.
IntPrimitiveTypeRepresents the Int member of the PrimitiveType enum.
parse()(json) => PrimitiveTypeParses a JSON string into a validated and hydrated PrimitiveType value.
StringPrimitiveTypeRepresents the String member of the PrimitiveType enum.
validate()(input, path?) => string | nullPerforms structural enum validation only (membership in PrimitiveType); it does not enforce business rules.
values()() => PrimitiveType[]Returns every declared PrimitiveType value in definition order.