When is a TypeScript union type impractical
When is a TypeScript union type impractical?
If it’s just a few options that never change, a union type is a great choice.
But if it’s many values that change often then a union type is a poor choice. It's a maintenance hassle and it risks being out of sync with the DB too.
My…
