2022-11-28
|~4 min read
|630 words
Since learning Typescript, I’ve been a big fan of Enums. I love the explicitness of them! Why guess and use a string when you can know that…
2022-11-28
|~1 min read
|181 words
Say you have an and you use that to make sure that the values you assign are within a predefined list. What happens when you receive that…
2022-11-28
|~3 min read
|429 words
For a long time I was using s to limit the values I could use for accessing keys on an interface. This process, was unwieldy, however and…
2022-11-28
|~1 min read
|199 words
We use Enums a lot in our Typescript code to make sure that we’re using a value that we expect. One way that we use the Enum is as the basis…