From 7ca81db573421bff2b77e37efa99bd00a94c13df Mon Sep 17 00:00:00 2001 From: MiaoWoo Date: Sun, 22 Sep 2019 18:02:28 +0800 Subject: [PATCH] doc: add jsdoc Signed-off-by: MiaoWoo --- packages/plugin/src/interfaces.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/packages/plugin/src/interfaces.ts b/packages/plugin/src/interfaces.ts index 18c48f43..3008eb35 100644 --- a/packages/plugin/src/interfaces.ts +++ b/packages/plugin/src/interfaces.ts @@ -11,10 +11,29 @@ export namespace interfaces { public disable() { } } export interface PluginMetadata { + /** + * 插件名称 + */ name: string; + /** + * 前缀 + */ + prefix?: string; + /** + * 插件版本 + */ version: string; + /** + * 插件版本 + */ author: string | string[]; + /** + * 插件源文件 必须指定为 __filename + */ source: string; + /** + * 插件本体 + */ target?: any; } export interface CommandMetadata {