Re:TypeScript 3.6
by spiralx on Thursday August 29, 2019 @11:07AM
(#20830145)
If you use a const enum in TypeScript it gets transpiled down to just the plain integer or string without any additional overhead. It just means you can't use a variable to get a value from the enum e.g. State[ currentState ] - which I'm not sure is a good pattern to use anyway.
[ Parent
| on HN ]
There are no comments on this comment yet.