doc: add jsdoc
Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
parent
a7479f60c8
commit
c95fc5fcff
@ -11,10 +11,29 @@ export namespace interfaces {
|
|||||||
public disable() { }
|
public disable() { }
|
||||||
}
|
}
|
||||||
export interface PluginMetadata {
|
export interface PluginMetadata {
|
||||||
|
/**
|
||||||
|
* 插件名称
|
||||||
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
|
/**
|
||||||
|
* 前缀
|
||||||
|
*/
|
||||||
|
prefix?: string;
|
||||||
|
/**
|
||||||
|
* 插件版本
|
||||||
|
*/
|
||||||
version: string;
|
version: string;
|
||||||
|
/**
|
||||||
|
* 插件版本
|
||||||
|
*/
|
||||||
author: string | string[];
|
author: string | string[];
|
||||||
|
/**
|
||||||
|
* 插件源文件 必须指定为 __filename
|
||||||
|
*/
|
||||||
source: string;
|
source: string;
|
||||||
|
/**
|
||||||
|
* 插件本体
|
||||||
|
*/
|
||||||
target?: any;
|
target?: any;
|
||||||
}
|
}
|
||||||
export interface CommandMetadata {
|
export interface CommandMetadata {
|
||||||
|
Loading…
Reference in New Issue
Block a user