typescript
Quick Tips - variadic unions in typescript
Quick Tips - variadic unions in typescript
· ☕ 1 min read
A lot of the time, you want to define union types in typescript, and you would set it up like this by default for a small collection of enumerated values-as-types: