Skip to content

Commit 6c80017

Browse files
committed
fix: Update TypeScript config for Angular 16
- Set target to ES2022 to remove compiler warnings - Add explicit useDefineForClassFields: false - Update module and lib to ES2022
1 parent 1930f30 commit 6c80017

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tsconfig.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"declaration": false,
99
"downlevelIteration": true,
1010
"experimentalDecorators": true,
11+
"useDefineForClassFields": false,
1112
"moduleResolution": "node",
1213
"importHelpers": true,
1314
"paths": {
@@ -16,10 +17,10 @@
1617
"dist/ngx-ui-loader"
1718
]
1819
},
19-
"target": "es2020",
20-
"module": "es2020",
20+
"target": "ES2022",
21+
"module": "ES2022",
2122
"lib": [
22-
"es2018",
23+
"ES2022",
2324
"dom"
2425
]
2526
},

0 commit comments

Comments
 (0)