Skip to content

Commit a2d6a80

Browse files
dev(renderer): use lib.dom.d.ts in @types/web
+ to use the latest lib.dom.d.ts + see: microsoft/TypeScript-DOM-lib-generator#1029
1 parent bb3245c commit a2d6a80

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

renderer/package-lock.json

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renderer/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"devDependencies": {
1717
"@types/node": "^16.11.6",
18+
"@types/web": "^0.0.99",
1819
"@typescript-eslint/eslint-plugin": "5.29.0",
1920
"@typescript-eslint/parser": "5.29.0",
2021
"builtin-modules": "3.3.0",

renderer/tsconfig.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{
22
"compilerOptions": {
3+
"types": [
4+
"web"
5+
],
36
"baseUrl": ".",
47
"inlineSourceMap": true,
58
"inlineSources": true,
69
"module": "commonjs",
7-
"target": "ES5",
10+
"target": "ES2019",
811
"allowJs": true,
912
"noImplicitAny": true,
1013
"moduleResolution": "node",
@@ -13,7 +16,6 @@
1316
"strictNullChecks": true,
1417
"declaration": true,
1518
"lib": [
16-
"DOM",
1719
"ES5",
1820
"ES6",
1921
"ES7"

0 commit comments

Comments
 (0)