Plugin

interface
interface Plugin<TMetadata>

Plugin containing optional extractors, parsers, schemas, and validators.
Auto-registers for declared file extensions.

PROPERTIES

NAMETYPEDESCRIPTION
readonly commands?PluginCommands<TMetadata>CLI commands provided by this plugin. Can be static commands or a function that receives the resolved config.
readonly extensions?string[]File extensions this plugin handles (e.g., ['.ts', '.tsx', '.js', '.jsx'])
readonly extractor?Extractor<TMetadata>Extractor that finds examples in a directory tree
readonly fileContentsParsers?FileContentsParser[]Parsers that process file contents (run in pipeline order)
readonly namestringUnique plugin name
readonly schemas?PluginSchemasJSON Schema definitions for IDE tooling.
readonly validators?PluginValidators<TMetadata>Runtime validators for options and metadata.