Node is fairly unlikely to add much further TypeScript support; for example they’ve removed the experimental support for handling non-type syntax. They’re happy with where they’re at. (I am also happy with where they’re at. So is the TypeScript team, for that matter.)
IIRC the TypeScript team recommends using erasableSyntaxOnly which would disable enums also; they consider it a mistake to have ever added syntax with runtime behavior, including enums.
Node is fairly unlikely to add much further TypeScript support; for example they’ve removed the experimental support for handling non-type syntax. They’re happy with where they’re at. (I am also happy with where they’re at. So is the TypeScript team, for that matter.)
score 1 · canonical
Interesting! I mostly miss enums, is that supported in Node?
score 1 · canonical
Nope. You can +1 this old TS issue about type-only enums but in the mean time you’d have to do without.
IIRC the TypeScript team recommends using
erasableSyntaxOnlywhich would disable enums also; they consider it a mistake to have ever added syntax with runtime behavior, including enums.score 1 · canonical
I can see how they’d think that, very interesting, thank you for that.
score 1 · canonical