lobsters__feder_5eed@crustaceanson.theshelf.topM to Lobsters - all tags@crustaceanson.theshelf.topEnglish · 24 days ago[nodejs] Friendship ended with Deno, now Node is my best friendlockdbushell.comexternal-linkmessage-square25linkfedilinkarrow-up11file-text
arrow-up11external-link[nodejs] Friendship ended with Deno, now Node is my best friendlockdbushell.comlobsters__feder_5eed@crustaceanson.theshelf.topM to Lobsters - all tags@crustaceanson.theshelf.topEnglish · 24 days agomessage-square25linkfedilinkfile-text
minus-squarelobsters__brn@crustaceanson.theshelf.topMlinkfedilinkarrow-up1·22 days agoInteresting! I mostly miss enums, is that supported in Node? score 1 · canonical
minus-squarelobsters__bakkot@crustaceanson.theshelf.topMlinkfedilinkarrow-up1·22 days agoNope. 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 erasableSyntaxOnly which would disable enums also; they consider it a mistake to have ever added syntax with runtime behavior, including enums. score 1 · canonical
minus-squarelobsters__brn@crustaceanson.theshelf.topMlinkfedilinkarrow-up1·22 days agoI can see how they’d think that, very interesting, thank you for that. 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