Skip to content

Create an explainer / hub page for type stripping (TypeScript) support #34

Open

Description

@JoshuaKGoldberg

Enter your suggestions in details:

The new type stripping / TypeScript support in Node.js is very exciting. A lot of users are adopting the built-in support for both source code and tooling config files. 🚀

But, there isn't one single high-level, official resource that users can be pointed to to understand the unflagged support.

Proposal: can the Node.js site have a page added dedicated to explaining type stripping at the high level? I'd imagine it could contain:

  1. What "type stripping" is
  2. Quick examples of running a .ts file
  3. What versions of Node.js have it
  4. Quick FAQs such as un/not-yet-supported syntax and type checking
  5. Links to learn more on the official Node.js and TypeScript websites

Sibling issue to #35, intentionally with as similar an issue body as possible.

Activity

  1. moved this to 🆕 New in Node.js Websiteon Feb 1, 2025
  2. AugustinMauroy commented on Feb 1, 2025

    @AugustinMauroy
    Member
  3. marco-ippolito commented on Feb 1, 2025

    @marco-ippolito
    Member

    No objections from my side, I agree a detailed guide would be useful. It has been moving pretty quickly and now its slowing down, so it should be possibile to write something without it becoming outdated immediately

  4. AugustinMauroy commented on Feb 1, 2025

    @AugustinMauroy
    Member

    Can I work on this or someone want work onto it ?

  5. AugustinMauroy commented on Feb 2, 2025

    @AugustinMauroy
    Member

    Okay after re-read of whole typescript sub-section:

    • learn/typescript/transpile: should have explaining about tsconfig and what transpiling can be interesting (mainly choosing the target).
    • learn/typescript/run: we should add why this method exist and what is interesting for user to use this method.
    • learn/typescript/run-natively has been created just after the landing of "types-stripping" so we need some new thing
      • Why node didn't have any kind of config
      • JSX + TSX what is it why node didn't handle this (basically no config + depend of the target).
      • Why/what is type-stripping

    Other point

    • The order need to be changed introduction => run natively ('cause it's the easiest way no conf just run) => transpiling => extra thing with runner
    • feat(learn): add article for publishing a typescript package nodejs.org#7279 explain how to publish a ts package to npm registry. But how should we advise working with typescript when it's not a package, I mean when it's directly a project. IMO native run for dev + tsc transpiling for prod.
    • there is no mention of type definition, for example there is no mention of @types/node.

    Extra thing just to keep trace/ personal note

  6. AugustinMauroy commented on Feb 3, 2025

    @AugustinMauroy
    Member

    After sync with Jacob:

    Here is the logic/link between the articles and the order in which they should appear

    • Intro:
      • add info about type defs (ex @types/node)
      • jsx
    • Running:
      • in dev
      • in prod
        • don’t → pre-compile. link back to dev compile option with diff codeblock for prod settings (ex minify: true)
    • Publishing for distribution:
      • down-versioning

    So action will be:

    1. revise intro
    2. finish Publishing a TypeScript project
    3. Reviese order and logic between article (explain above)
  7. avivkeller commented on Jul 14, 2025

    @avivkeller
    Member

    Is this resolved, we have several articles for TS now?

  8. moved this from 📋 Backlog to ✅ Done in Node.js Websiteon Jul 14, 2025
  9. moved this from ✅ Done to 🏗 In progress in Node.js Websiteon Jul 14, 2025
  10. avivkeller commented on Jul 14, 2025

    @avivkeller
    Member

    (oops, wrong button)

  11. marco-ippolito commented on Jul 14, 2025

    @marco-ippolito
    Member

    I think https://nodejs.org/en/learn/typescript/run-natively would still benefit a more in depth explanation

  12. moved this from 🏗 In progress to 🔖 Ready in Node.js Websiteon Sep 25, 2025
  13. ibiraza1077-pixel commented on Mar 16, 2026

    @ibiraza1077-pixel

    Hi, I'd like to work on this. I'm a Computer Science student with TypeScript experience and I'd be happy to draft the explainer page. Could a maintainer confirm this is still available to pick up?

  14. avivkeller commented on Mar 16, 2026

    @avivkeller
    Member

    This issue is still open, yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions