Plugin<
PluginParameters,Input,Output> = (this, …parameters) =>Inputextendsstring?OutputextendsNode|undefined?undefined|void:never:OutputextendsCompileResults?InputextendsNode|undefined?undefined|void:never:Transformer<InputextendsNode?Input:Node,OutputextendsNode?Output:Node> |undefined|void
Defined in: node_modules/unified/lib/index.d.ts:946
Single plugin.
Plugins configure the processors they are applied on in the following ways:
In practice, they are functions that can receive options and configure the
processor (this).
Note: plugins are called when the processor is frozen, not when they are applied.
| Type Parameter | Default type | 
|---|---|
PluginParameters extends unknown[] | [] | 
Input extends string | Node | 
Output | Input | 
| Parameter | Type | 
|---|---|
this | Processor | 
…parameters | PluginParameters | 
Input extends string ? Output extends Node | undefined ? undefined | void : never : Output extends CompileResults ? Input extends Node | undefined ? undefined | void : never : Transformer<Input extends Node ? Input : Node, Output extends Node ? Output : Node> | undefined | void