PluginOutput
Import from @varavel/vdl-plugin-sdk.
PluginOutput represents the response payload returned by the plugin function.
After processing the input schema, the plugin outputs this object containing all files to be generated or errors to be displayed to the user.
If there are no errors and at least one file is returned, VDL will write each file to the specified path within the output directory. If there are errors, VDL will display them to the user and not write any files.
Properties
| Property | Type | Description |
|---|---|---|
errors? |
PluginOutputError[] |
List of semantic errors encountered by the plugin. If present, VDL will stop the compilation and display them to the user. |
files? |
PluginOutputFile[] |
List of virtual files generated by the plugin. Each file specifies a relative path within the output directory and its complete textual content. Paths may include subdirectories which VDL will create automatically. If no files are returned, VDL will not write anything. |