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

Roadmap to stable strip-types #24

Open
8 tasks
marco-ippolito opened this issue Jan 8, 2025 · 6 comments
Open
8 tasks

Roadmap to stable strip-types #24

marco-ippolito opened this issue Jan 8, 2025 · 6 comments

Comments

@marco-ippolito
Copy link
Member

marco-ippolito commented Jan 8, 2025

We have unflagged --experimental-strip-types in v23.6.0.
Here what I think are some of the next steps:

Feel free to add items if you think I missed something

@mcollina
Copy link
Member

mcollina commented Jan 8, 2025

I think we should publish the suggested tsconfig on npm and maintain it.

Plan sounds good.

@JakobJingleheimer
Copy link
Member

I think we should publish the suggested tsconfig on npm and maintain it.

Plan sounds good.

Great idea 🙂 could go under the @nodejs namespace we already have

@JakobJingleheimer
Copy link
Member

Article on how to publish a new package node/nodejs.org#7279

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.

Wait for TypeScript 5.8 (at least beta) compatibility flag with strip-types (@nodejs/typescript ETA?)

Looks like this is still an unknown: https://bsky.app/profile/jakebailey.dev/post/3lf4igi3lzc2m

Create some utilities to validate tsconfig or generate tsconfig compatible with --experimental-strip-types

I can do! I recently did something similar for one of my own libraries.

@marco-ippolito marco-ippolito changed the title Roadmap to stable --strip-types Roadmap to stable strip-types Jan 8, 2025
@ljharb
Copy link
Member

ljharb commented Jan 8, 2025

What about TS syntax in the repl? Should that work by default too?

@marco-ippolito
Copy link
Member Author

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.

@RyanCavanaugh
Copy link

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

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

5 participants