瀏覽代碼

fix typescript warning

tripeur 4 年之前
父節點
當前提交
bfff94fcc7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/utils/Toast.ts

+ 1 - 1
src/utils/Toast.ts

@@ -133,7 +133,7 @@ export class Toast {
       Toast._toasts[toastIndex].dismiss();
     }
   }
-  static _createContainer() {
+  static _createContainer(): void {
     const container = document.createElement("div");
     container.setAttribute("id", "toast-container");
     document.body.appendChild(container);