chore(desktop): simplify code (#1146)

This commit is contained in:
Himself65
2023-02-20 23:15:40 -06:00
committed by GitHub
parent ed4d1e8bcd
commit edd8f347bc
13 changed files with 30 additions and 191 deletions
+7 -1
View File
@@ -1,4 +1,8 @@
/* eslint-disable @typescript-eslint/ban-ts-comment */
declare global {
interface Window {
__TAURI_ISOLATION_HOOK_: (payload: any) => any;
}
}
// tauri preload script can't have `export {}`
// @ts-ignore 'index.ts' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.ts(1208)
@@ -16,3 +20,5 @@ function setEnvironmentVariables() {
}
setEnvironmentVariables();
export {};