5 comments

[ 5.1 ms ] story [ 25.5 ms ] thread
Node.js enables --experimental-strip-types by default
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?
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.
The PR is still open and hasn't actually been merged yet. It'll be great when it is though.
Wow great news! ts-node has always been a bit clunky to use. Even without enums this should be useful for one-off scripts