4 ms·
I guess unions of string or number literals? type Option = “foo” | “bar"
by jauco 3y ago
I guess unions of string or number literals?
type Option = “foo” | “bar"
- iainmerrick 3y agoYes, exactly this. For most purposes it's simpler and better than TS enums.