Interface: FormatterClass¶
Defined in: formatters/src/types.ts:108
Static interface for formatter classes.
Enforces that every formatter class provides a static getSupportedVersions() method returning its version configuration. TypeScript cannot enforce static methods via implements, so this type is used at registration time to provide compile-time safety.
Example¶
// This will type-check:
FormatterRegistry.register('claude', ClaudeFormatter);
// This will fail at compile time if MissingFormatter lacks getSupportedVersions():
FormatterRegistry.register('missing', MissingFormatter);
Constructors¶
Constructor¶
new FormatterClass():
Formatter
Defined in: formatters/src/types.ts:110
Create a new formatter instance
Returns¶
Methods¶
getSupportedVersions()¶
getSupportedVersions():
FormatterVersionMap
Defined in: formatters/src/types.ts:112
Return version configuration for this formatter