Kaynağa Gözat

[修补]默认接口

Sakulin 3 ay önce
ebeveyn
işleme
7d2aed8a1a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 中定义统一的接口