mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-23 21:38:44 +08:00
chore(desktop): simplify code (#1146)
This commit is contained in:
@@ -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 {};
|
||||
|
||||
Reference in New Issue
Block a user