Re:From Rust to TypeScript
by city41 on Saturday September 12, 2020 @11:52AM
(#24453333)
There are also const enums, which get inlined/erased at compile time. Even so, I still avoid using enums and prefer literal types instead.
[ Parent
| on HN ]
There are no comments on this comment yet.