Skip to content

插件定义

Properties ​

dependencies? ​

optional dependencies?: string[]

依赖的其他插件名


name ​

name: string


priority? ​

optional priority?: number

加载顺序,数值越小越先加载

Methods ​

setup()? ​

optional setup(ctx): void | PluginCleanup | Promise<void | PluginCleanup>

插件入口,可返回清理函数供卸载时调用

Parameters ​

ctx ​

MiokuContext

Returns ​

void | PluginCleanup | Promise<void | PluginCleanup>

Released under the MIT License with love.