Skip to content

Commit 3fd961c

Browse files
build: declare the ES2022 standard library in the tsconfigs
The lib declarations (es2018/es2019) understate every runtime this project supports — Node 20+ and the browsers Angular 21 supports all provide ES2022, and the Angular CLI generates new workspaces at ES2022. This also resolves the inconsistency of target es2020 sitting alongside lib es2018. Type-checking declaration only; compilation targets are unchanged, so emitted code is identical.
1 parent 59c8a2f commit 3fd961c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tsconfig.base.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"node_modules/@types"
1919
],
2020
"lib": [
21-
"es2018",
21+
"es2022",
2222
"dom"
2323
],
2424
"paths": {

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"compilerOptions": {
66
"outDir": "tools",
77
"skipLibCheck": true,
8-
"lib": ["es2019", "dom"],
8+
"lib": ["es2022", "dom"],
99
"module": "commonjs",
1010
"target": "ES2020",
1111
"plugins": [

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
],
1212
"lib": [
1313
"dom",
14-
"es2018"
14+
"es2022"
1515
]
1616
},
1717
"angularCompilerOptions": {

0 commit comments

Comments
 (0)