Skip to content

PromptScript API


Interface: CompileResult

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

Result of a compilation.

Properties

errors

errors: CompileError[]

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

Errors encountered during compilation


outputPlan?

optional outputPlan?: OutputPlan

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

Shared filesystem-independent output plan.

Optional for compatibility with manually constructed compile results.


outputs

outputs: Map\<string, FormatterOutput>

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

Formatter outputs keyed by normalized output path


stats

stats: CompileStats

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

Compilation statistics


success

success: boolean

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

Whether compilation succeeded


warnings

warnings: ValidationMessage[]

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

Warnings from validation