-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
doc: update typescript docs #7412
Conversation
Fix a small conceptual issue and add details for v23 Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
cc @nodejs/typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
General note :
- use pin node version in the doc like https://nodejs.org/docs/latest-v23.x/api/typescript.html
- add link to doc for --experimental-transform-types
Co-authored-by: Augustin Mauroy <augustin.mauroy@outlook.fr> Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
Co-authored-by: Rob Palmer <rob.palmer2@gmail.com> Signed-off-by: Lucas Santos <lhs.santoss@gmail.com>
Done! Also added a link to V23's |
It seems to be stuck apparently, I can't get any results from the checks back and it's blocking the merge 🤔 |
Lighthouse Results
|
Description
This PR extends and improves upon the original article about "How to run TS with Node". It fixes a small conceptual issue (using both flags), while adding the configuration section to point that the users will probably need to update their tsconfig and expands on new versions of node, especially on v23 which enables type stripping by default, but not type transformation.
Overall, it just adds more information on running TS by default.
Validation
Documentation change, no code.
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.