Skip to content

LiteralValue

Import from @varavel/vdl-plugin-sdk.

type LiteralValue = object;

Fully resolved literal value.

The selected payload is determined by kind:

  • string -> stringValue
  • int -> intValue
  • float -> floatValue
  • bool -> boolValue
  • object -> objectEntries
  • array -> arrayItems

Properties

Property Type Description
arrayItems? LiteralValue[] Payload for kind = array
boolValue? boolean Payload for kind = bool
floatValue? number Payload for kind = float
intValue? number Payload for kind = int
kind LiteralKind Value category discriminator
objectEntries? ObjectEntry[] Payload for kind = object
position Position Source position of this literal value
stringValue? string Payload for kind = string