Skip to content

PromptScript API


Interface: FormatOptions

Defined in: compiler/src/types.ts:25

Options for formatting.

Properties

convention?

optional convention?: string | OutputConvention

Defined in: compiler/src/types.ts:27

Output convention to use


outputPath?

optional outputPath?: string

Defined in: compiler/src/types.ts:29

Custom output path


prettier?

optional prettier?: PrettierMarkdownOptions

Defined in: compiler/src/types.ts:39

Prettier formatting options for markdown output.


targetConfig?

optional targetConfig?: TargetConfig

Defined in: compiler/src/types.ts:42

Full target configuration, passed through from promptscript.yaml.


version?

optional version?: string

Defined in: compiler/src/types.ts:35

Target version or format variant. Use 'legacy' for deprecated formats.

Example

'legacy' | '1.0' | '2.0'