From d66dae74e8faceb6d3e7467d9f24b4b286fdbece Mon Sep 17 00:00:00 2001 From: xue jiahao Date: Thu, 12 Mar 2026 12:24:34 +0800 Subject: [PATCH] fix ts type error --- src/main/index.ts | 1 - tsconfig.node.json | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index e33e2d2..d2cdda6 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -19,7 +19,6 @@ function createWindow(): void { autoHideMenuBar: true, titleBarStyle: "hiddenInset", trafficLightPosition: { x: 15, y: 10 }, - ...(process.platform === "linux" ? { icon } : {}), webPreferences: { preload: join(__dirname, "../preload/index.js"), sandbox: false, diff --git a/tsconfig.node.json b/tsconfig.node.json index b671278..48134a3 100644 --- a/tsconfig.node.json +++ b/tsconfig.node.json @@ -1,6 +1,11 @@ { "extends": "@electron-toolkit/tsconfig/tsconfig.node.json", - "include": ["electron.vite.config.ts", "src/main/**/*", "src/preload/**/*"], + "include": [ + "electron.vite.config.ts", + "src/main/**/*", + "src/preload/**/*", + "src/renderer/**/*", + ], "compilerOptions": { "composite": true, "types": ["electron-vite/node"],