-
Notifications
You must be signed in to change notification settings - Fork 1
Roadmap to stable strip-types #24
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
Comments
I think we should publish the suggested tsconfig on npm and maintain it. Plan sounds good. |
Great idea 🙂 could go under the |
I'm getting back to this tonight. I have made the requested updates locally. Need to finish a couple other things and then will push.
Looks like this is still an unknown: https://bsky.app/profile/jakebailey.dev/post/3lf4igi3lzc2m
I can do! I recently did something similar for one of my own libraries. |
What about TS syntax in the repl? Should that work by default too? |
I did not dare to try implement it in the REPL as it looks quite complicate. |
We've named and approved microsoft/TypeScript#59601 which should land in either TS 5.8 or 5.9 depending on timing, so that should be a recommended flag once it's in |
On the |
Well that was fast: https://devblogs.microsoft.com/typescript/announcing-typescript-5-8-beta/ |
Small heads up since it seems to be easy to miss that 5.7 also added I've added a PR in tsconfig/bases#300 to add it already, but thought it was worth mentioning here. |
Do you have any insights about the possibility of The existence of this roadmap for type stripping is excellent news, because it means that the feature is likely to become stable and we are already considering it for our projects. I wonder whether there is any similar information about type transformation :) |
|
Of course note that TS itself is "unstable", so you may end up with a break when using that flag eventually (e.g., we will probably be removing the module keyword to make way for TC39 use). |
We have already removed the |
PR-URL: #57705 Refs: nodejs/typescript#24 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]>
PR-URL: nodejs#57705 Refs: nodejs/typescript#24 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jordan Harband <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Zijian Liu <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]>
We have unflagged
--experimental-strip-types
in v23.6.0.Here what I think are some of the next steps:
ERR_INVALID_TYPESCRIPT_SYNTAX
for everything.--erasableSyntaxOnly
flag--erasableSyntaxOnly
flag @khaosdoctor (Add recommended configuration for Node.js running TS natively tsconfig/bases#293)--experimental-strip-types
@robpalme added it to https://github.com/tsconfig/bases/blob/main/bases/node-ts.jsonFeel free to add items if you think I missed something
The text was updated successfully, but these errors were encountered: