3 ms·
That's a very real trade-off and something we have to carefully make a judgement call on every time. In this specific case the decision is made a lot easier du
by robpalmer 6y ago
That's a very real trade-off and something we have to carefully make a judgement call on every time. In this specific case the decision is made a lot easier due to the fact that string unions are often a simpler alternative.
type Color = "red" | "green" | "blue";
Glad to hear you appreciated the article!