Skip to content

Commit

Permalink
Add preload declarations to main tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jsam07 committed Jun 13, 2024
1 parent 234c81b commit 4587624
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/renderer/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import './assets/main.css'
import App from './App.svelte'

const app = new App({
target: document.getElementById('app')
target: document.getElementById('app')!
})

export default app
3 changes: 3 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "./tsconfig.base.json",
"include": [
"src/core/preload/*.d.ts"
],
"references": [
{ "path": "./tsconfig.node.json" },
{ "path": "./tsconfig.web.json" }
Expand Down
1 change: 0 additions & 1 deletion tsconfig.node.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"electron.vite.config.*",
"src/core/**/*",
"src/core/preload/**/*",
"src/core/preload/*.d.ts"
],
"extends": "./tsconfig.json",
"compilerOptions": {
Expand Down

0 comments on commit 4587624

Please sign in to comment.