浏览代码

chore(api): fix formatting

Lucas Nogueira 3 年之前
父节点
当前提交
f834a1545c
共有 1 个文件被更改,包括 7 次插入9 次删除
  1. 7 9
      tooling/api/src/tauri.ts

+ 7 - 9
tooling/api/src/tauri.ts

@@ -13,7 +13,7 @@
 declare global {
 declare global {
   // eslint-disable-next-line @typescript-eslint/no-unused-vars
   // eslint-disable-next-line @typescript-eslint/no-unused-vars
   interface Window {
   interface Window {
-    __TAURI_IPC__: (message: any) => void,
+    __TAURI_IPC__: (message: any) => void
     ipc: {
     ipc: {
       postMessage: (args: string) => void
       postMessage: (args: string) => void
     }
     }
@@ -76,14 +76,12 @@ async function invoke<T>(cmd: string, args: InvokeArgs = {}): Promise<T> {
       Reflect.deleteProperty(window, callback)
       Reflect.deleteProperty(window, callback)
     }, true)
     }, true)
 
 
-    window.__TAURI_IPC__(
-      {
-        cmd,
-        callback,
-        error,
-        ...args
-      }
-    )
+    window.__TAURI_IPC__({
+      cmd,
+      callback,
+      error,
+      ...args
+    })
   })
   })
 }
 }