Skip to content

build: declare the ES2022 standard library in the tsconfigs#3706

Merged
armando-navarro merged 1 commit into
angular:mainfrom
armando-navarro:chore/declare-es2022-lib
Jul 9, 2026
Merged

build: declare the ES2022 standard library in the tsconfigs#3706
armando-navarro merged 1 commit into
angular:mainfrom
armando-navarro:chore/declare-es2022-lib

Conversation

@armando-navarro

Copy link
Copy Markdown
Collaborator

The tsconfig lib declarations (es2018 in the root and base configs, es2019 in tsconfig.build.json) understate every runtime this project supports — Node 20+ in CI 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.

Fixes #3705

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.
@armando-navarro armando-navarro force-pushed the chore/declare-es2022-lib branch from 74ea83b to 3fd961c Compare July 9, 2026 00:15
@armando-navarro armando-navarro merged commit b57868d into angular:main Jul 9, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tsconfig lib declarations (es2018) understate the supported runtimes

2 participants