Skip to content

Commit e2645ca

Browse files
committed
tsconfig: add separate one for web worker so type checking works
1 parent ad92b5f commit e2645ca

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@
2121
"include": [
2222
"src",
2323
"vite.config.ts"
24+
],
25+
"exclude": [
26+
"src/pyodide-worker/**/*"
2427
]
2528
}

tsconfig.worker.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"lib": [
5+
"ESNext",
6+
"WebWorker",
7+
"WebWorker.ImportScripts"
8+
]
9+
},
10+
"include": [
11+
"src/pyodide-worker/**/*"
12+
]
13+
}

0 commit comments

Comments
 (0)