Skip to content

PluginOutputFile

Import from @varavel/vdl-plugin-sdk.

type PluginOutputFile = object;

PluginOutputFile represents a single generated file produced by the plugin.

This abstraction allows plugins to generate multiple files from a single invocation, enabling patterns like one-file-per-type or splitting large outputs across multiple modules.

Properties

Property Type Description
content string The complete textual content of the generated file. This should be the final, formatted output ready to be written to disk. VDL writes this content as-is without additional processing.
path string Relative path from the output directory where this file should be written. May include subdirectory separators (e.g., "src/models/user.py"). Forward slashes are normalized to the appropriate separator for the current operating system.