@@ -36,7 +36,7 @@ export interface Processor<P = Settings> extends FrozenProcessor<P> {
3636 * @typeParam S Plugin settings
3737 */
3838 use < S extends any [ ] = [ Settings ?] > (
39- pluginTuple : PluginTuple < S , P >
39+ pluginTuple : PluginTuple < S , P > | [ Plugin < S , P > , boolean ]
4040 ) : Processor < P >
4141
4242 /**
@@ -221,10 +221,7 @@ export interface FrozenProcessor<P = Settings> {
221221 * @typeParam P Processor settings
222222 * @returns Optional Transformer.
223223 */
224- export type Plugin <
225- S extends any [ ] = [ Settings ?] ,
226- P = Settings
227- > = Attacher < S , P >
224+ export type Plugin < S extends any [ ] = [ Settings ?] , P = Settings > = Attacher < S , P >
228225
229226/**
230227 * Configuration passed to a Plugin or Processor
@@ -259,10 +256,10 @@ export interface ProcessorSettings<P = Settings> {
259256 * @typeParam S Plugin settings
260257 * @typeParam P Processor settings
261258 */
262- export type PluginTuple <
263- S extends any [ ] = [ Settings ? ] ,
264- P = Settings
265- > = [ Plugin < S , P > , ... S ]
259+ export type PluginTuple < S extends any [ ] = [ Settings ? ] , P = Settings > = [
260+ Plugin < S , P > ,
261+ ... S
262+ ]
266263
267264/**
268265 * A union of the different ways to add plugins to unified
0 commit comments