Skip to content

PromptScript API


Interface: FormatOptions

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

Options for formatting.

Properties

convention?

optional convention?: string | OutputConvention

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

Output convention to use


outputPath?

optional outputPath?: string

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

Custom output path


prettier?

optional prettier?: PrettierMarkdownOptions

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

Prettier formatting options for markdown output.


targetConfig?

optional targetConfig?: TargetConfig

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

Full target configuration, passed through from promptscript.yaml.


version?

optional version?: string

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

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

Example

'legacy' | '1.0' | '2.0'