Skip to content

PromptScript API


Interface: FormatOptions

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

Options for formatting.

Properties

convention?

optional convention?: string | OutputConvention

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

Output convention to use


outputPath?

optional outputPath?: string

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

Custom output path


prettier?

optional prettier?: PrettierMarkdownOptions

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

Prettier formatting options for markdown output.


targetConfig?

optional targetConfig?: TargetConfig

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

Full target configuration, passed through from promptscript.yaml.


version?

optional version?: string

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

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

Example

'legacy' | '1.0' | '2.0'