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

Support for new Typescript 5.0 const keywork with 'new' methods in interfaces #3021

Closed
ecyrbe opened this issue Mar 25, 2023 · 4 comments
Closed

Comments

@ecyrbe
Copy link

ecyrbe commented Mar 25, 2023

Typescript 5.0 has released a new const type parameter in generic functions.

esbuild does not support it yet.

swc and eslint, and other tooling have catched up. we are just waiting for esbuild to also add support for it.

Awesome package tool, keep up the good work. it's impressive.

@evanw
Copy link
Owner

evanw commented Mar 25, 2023

This was already added two months ago. If you have a case that doesn’t work, then please provide it.

@ecyrbe
Copy link
Author

ecyrbe commented Mar 25, 2023

sorry, more context of it not working:
image
image

@ecyrbe
Copy link
Author

ecyrbe commented Mar 25, 2023

So minimal setup to reproduce seems to be on overriding new keyword in interfaces. That use case works fine in TSC

@ecyrbe ecyrbe changed the title Support for new Typescript 5.0 const keywork in generics Support for new Typescript 5.0 const keywork with 'new' methods in interfaces Mar 25, 2023
@evanw
Copy link
Owner

evanw commented Mar 26, 2023

Thanks for the test case. Sorry about the oversight. A fix for this will be in the next release.

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

No branches or pull requests

2 participants