2 ms·
I'm really excited about String enums. I've been avoiding enums in TypeScript until now, since every time I've wanted to use them, I realized that a literal uni
by hamstercat 9y ago
I'm really excited about String enums. I've been avoiding enums in TypeScript until now, since every time I've wanted to use them, I realized that a literal union was easier to use when the times come to log or persist the value. But with this you keep the string representation, and get a typed constant at the same time.
Dynamic imports is pretty huge too, that should come in handy for a lot of people.