News for hackers. Stuff that matters.
Re:Node.js enables TypeScript support by default by satanacchio on Thursday December 26, 2024 @02:31AM (#42513676)
Node.js enables --experimental-strip-types by default
Re:Node.js enables TypeScript support by default by jimmcslim on Thursday December 26, 2024 @07:25AM (#42514783)
Yes the heading is a bit misleading as there are other Typescript features that aren’t simply the result of type stripping, eg enums, but great to see this happening. What does this mean for Deno and Bun?
Re:Node.js enables TypeScript support by default by xscott on Thursday December 26, 2024 @08:22AM (#42515035)
The flag calling it "strip types" seems to suggest that they are ignored and discarded, where Deno will actually use the types for checking. I haven't played with Bun.
Re:Node.js enables TypeScript support by default by mytydev on Thursday December 26, 2024 @07:28AM (#42514796)
The PR is still open and hasn't actually been merged yet. It'll be great when it is though.
Re:Node.js enables TypeScript support by default by tekkk on Thursday December 26, 2024 @07:27AM (#42514787)
Wow great news! ts-node has always been a bit clunky to use. Even without enums this should be useful for one-off scripts