Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Typescript configuration #689

Merged
merged 2 commits into from
Nov 19, 2021
Merged

Update Typescript configuration #689

merged 2 commits into from
Nov 19, 2021

Conversation

dcyriller
Copy link
Member

Changes

Why do we need this change?

In a follow-up, we will add es2020.string to the lib field It will allow us to use String.matchAll which is also supported in Nodejs 12.

We now target Nodejs 12. So we can change the target to `es2019`.
(for reference, see:
https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping#node-12)
As a result, we restrict build-in type declarations to es2019 and dom.

Adding `es2019` and `dom` groups to the list of built-in type
declarations is the minimum set we need.

Why do we need this change?

In a follow-up, we will add `es2020.string` to the list. It will allow
us to use String.matchAll which is also supported in Nodejs 12.
@rwjblue rwjblue merged commit 8b06e59 into master Nov 19, 2021
@rwjblue rwjblue deleted the update-tsconfig branch November 19, 2021 20:45
@dcyriller
Copy link
Member Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants