UNPKG

439 BTypeScriptView Raw
1import type { Config, PluginCreator } from './types/config'
2type Plugin = {
3 withOptions<T>(
4 plugin: (options: T) => PluginCreator,
5 config?: (options: T) => Partial<Config>
6 ): { (options: T): { handler: PluginCreator; config?: Partial<Config> }; __isOptionsFunction: true }
7 (plugin: PluginCreator, config?: Partial<Config>): { handler: PluginCreator; config?: Partial<Config> }
8}
9
10declare const plugin: Plugin
11export = plugin