Prechádzať zdrojové kódy

[修补]默认接口

Sakulin 3 mesiacov pred
rodič
commit
7d2aed8a1a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/lib/decorators.ts

+ 1 - 1
src/lib/decorators.ts

@@ -73,7 +73,7 @@ export interface PluginConfig {
         command?: string[];     // 帮助命令
         description?: string;   // 帮助命令描述
     };
-    default?: () => ({}); // 默认函数
+    default?: () => any; // 默认函数
 }
 
 // 在 decorators.ts 中定义统一的接口