# LegacyFormatter

[**PromptScript API**](https://getpromptscript.dev/api-reference/index.md)

***

# Type Alias: LegacyFormatter

> **LegacyFormatter** = `Omit`\<[`Formatter`](https://getpromptscript.dev/api-reference/formatters/src/interfaces/Formatter/index.md), `"formatCanonical"`\>

Defined in: [formatters/src/types.ts:139](https://github.com/mrwogu/promptscript/blob/49aa50f943865b985366c4eda6e95c5a31ef39a6/packages/formatters/src/types.ts#L139)

Explicit legacy formatter contract.

Legacy formatters consume the mutable `Program` compatibility AST.