-
Notifications
You must be signed in to change notification settings - Fork 260
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
type-stripping in Node.js recommendations? #287
Comments
I think we'd need a separate one for that, the type-stripping in node is experimental and requires flagging |
I'm not sure those are options that one should be enabling without understanding what you're doing already; those flags are also incomplete until TS adds the ability to block bad syntax and require |
A separate tsconfig sounds reasonable! Would you then wait for the tsconfig option mentioned (reference for others: microsoft/TypeScript#59601), or could we go ahead and provide a “strip-types” tsconfig that could be kept in sync with the Node.js recommendations for this mode going forward? |
TypeScript 5.8 beta was just released with a new It'd be great to see |
Would be so nice to have a config with nodejs recommendations and erasableSyntaxOnly |
TypeScript 5.8.2 is out! What are the downsides of adding |
They have nothing to do with type error level strictness, and only about limiting the syntax to be able to run in type-erasing transformers (Node's amaro, ts-blank-space). People might be pretty unsatisfied if they're using enums, namespaces, etc. There's a config mixin for this in #293 though, if you want it (wasn't linked here, oops). |
Oh I did not know about |
Would be nice to see this config mixin in readme table of contents otherwise the issue is resolved. Thank you! |
Sent #297. |
Node.js is adding native ts support. It would be great if the Node.js tsconfigs would follow the official recommendations: https://nodejs.org/docs/latest/api/typescript.html#type-stripping
The text was updated successfully, but these errors were encountered: