Skip to content

Commit

Permalink
Add types
Browse files Browse the repository at this point in the history
  • Loading branch information
jsam07 committed Jun 13, 2024
1 parent 8a7792f commit 234c81b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { app, shell, BrowserWindow, ipcMain } from 'electron'
import { electronApp, is, optimizer } from '@electron-toolkit/utils'
import { BrowserWindow, app, ipcMain, shell } from 'electron'
import { join } from 'path'
import { electronApp, optimizer, is } from '@electron-toolkit/utils'
import icon from '../../resources/icon.png?asset'

function createWindow(): void {
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"include": [
"electron.vite.config.*",
"src/core/**/*",
"src/core/preload/**/*"
"src/core/preload/**/*",
"src/core/preload/*.d.ts"
],
"extends": "./tsconfig.json",
"compilerOptions": {
"composite": true,
"types": ["node"]
"types": ["electron-vite/node"]
}
}

0 comments on commit 234c81b

Please sign in to comment.