DEV Community

Discussion on: Advanced TypeScript's capabilities in real-life scenario

Collapse
tokland profile image
Arnau Sanchez • Edited on

Enums are cool, but using string literals makes working with generics much easier:

gist.github.com/tokland/9dcae2ac7a...

I don't think you can write it this way with enums.