瀏覽代碼

Log functions: change the type of the additional arguments to any

customisations
alemart 1 年之前
父節點
當前提交
a05a26218b
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. 3
    3
      src/utils/utils.ts

+ 3
- 3
src/utils/utils.ts 查看文件

@@ -39,7 +39,7 @@ export class Utils
39 39
      * @param message
40 40
      * @param args optional additional messages
41 41
      */
42
-    static log(message: string, ...args: string[]): void
42
+    static log(message: string, ...args: any[]): void
43 43
     {
44 44
         console.log('[martins-js]', message, ...args);
45 45
     }
@@ -49,7 +49,7 @@ export class Utils
49 49
      * @param message
50 50
      * @param args optional additional messages
51 51
      */
52
-    static warning(message: string, ...args: string[]): void
52
+    static warning(message: string, ...args: any[]): void
53 53
     {
54 54
         console.warn('[martins-js]', message, ...args);
55 55
     }
@@ -59,7 +59,7 @@ export class Utils
59 59
      * @param message
60 60
      * @param args optional additional messages
61 61
      */
62
-    static error(message: string, ...args: string[]): void
62
+    static error(message: string, ...args: any[]): void
63 63
     {
64 64
         console.error('[martins-js]', message, ...args);
65 65
     }

Loading…
取消
儲存