mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 02:59:31 +08:00
11 lines
403 B
Text
11 lines
403 B
Text
import type { Config, PluginCreator } from './types/config'
|
|
type Plugin = {
|
|
withOptions<T>(
|
|
plugin: (options: T) => PluginCreator,
|
|
config?: (options: T) => Config
|
|
): { (options: T): { handler: PluginCreator; config?: Config }; __isOptionsFunction: true }
|
|
(plugin: PluginCreator, config?: Config): { handler: PluginCreator; config?: Config }
|
|
}
|
|
|
|
declare const plugin: Plugin
|
|
export = plugin
|