TGViewer
JavaScript JavaScript @javascript · 31K subscribers
Post #1673 8.02K
👀 Experimental TypeScript support via strip types

Node.js introduces the --experimental-strip-types flag for initial TypeScript support. This feature strips type annotations from .ts files, allowing them to run without transforming TypeScript-specific syntax. Current limitations include:

- Supports only inline type annotations, not features like enums or namespaces.

- Requires explicit file extensions in import and require statements.

- Enforces the use of the type keyword for type imports to avoid runtime errors.

- Disabled for TypeScript in node_modules by default.

Rafael Gonzaga
  • 👍 6
  • 🔥 4
  • ❤ 2
  • 🤩 1
More from @javascript
  1. Oct 15, 2026🤟 You Don’t Know Node.js EventLoop (30 min read) You might be wondering if the title of t…
  2. Oct 15, 2026Post #3561
  3. Oct 15, 2026CHALLENGE class EventBus { #listeners = new Map(); on(event, cb) { if (!this.#listeners.ha…
  4. Oct 14, 2026💻 Deno is Joining Cloudflare (But…) Maybe David Bushell saw the writing on the wall, as t…
  5. Oct 14, 2026Post #3558
  6. Oct 14, 2026CHALLENGE const obj = { value: 42, getValue: function() { return this.value; } }; const un…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →