fix: optional window.electron

This commit is contained in:
DIYgod
2024-05-24 10:32:45 +08:00
parent 48db1f1a50
commit f3fafff1ed
6 changed files with 15 additions and 13 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import { ElectronAPI } from "@electron-toolkit/preload"
declare global {
interface Window {
electron: ElectronAPI
electron?: ElectronAPI
api: unknown
}
}