Skip to content

GenerateVdlNode

Import from @varavel/vdl-plugin-sdk/utils/codegen.

type GenerateVdlNode = 
  | Partial<IrSchema>
  | ConstantDef
  | EnumDef
  | TypeDef
  | TopLevelDoc;

Supported VDL IR nodes that can be re-rendered into canonical VDL source.

The emitted text is a best-effort reconstruction from normalized IR. It does not restore source features that are intentionally lost during analysis, such as comments, includes, spreads, or reference-based constant values.