logoalt Hacker News

vips7Ltoday at 9:37 AM2 repliesview on HN

Sounds like enums with extra steps.


Replies

epolanskitoday at 11:30 AM

Enums aren't type safe in typescript

show 1 reply
socalgal2today at 12:59 PM

it’s Enuma associated with data without having to repeat yourself

If you have to define the Enums in one place and then repeat them all in another just to associate data with each one you’ve failed

show 1 reply