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

Target ES2022 when building the TypeScript definitions (issue 17932) #18161

Merged
merged 1 commit into from
May 28, 2024

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented May 24, 2024

This should avoid the latest JS features appearing in the TypeScript definitions, and given the currently supported browsers/environments (in PDF.js) we shouldn't need to target an even older ES-version.

Edit: I again question the value of offering TypeScript definitions, since they cause nothing but maintenance overhead that is unfortunately often not shouldered by the actual TypeScript users.

This should avoid the latest JS features appearing in the TypeScript definitions, and given the currently supported browsers/environments (in PDF.js) we shouldn't need to target an even older ES-version.
@timvandermeij timvandermeij merged commit 401a1d4 into mozilla:master May 28, 2024
7 checks passed
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the types-ES2022 branch May 28, 2024 11:34
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.

Unable to build with 4.1.392: error TS2304: Build:Cannot find name 'PromiseWithResolvers'
2 participants