by cies · 2y ago · 0 comments
I expect those `"a" | "b" | "c"` to be expressed as an enum, not strings and |s.
But hey, why not!
The more distinctive features in TypeScript would be what you can to with keyof/typeof, indexed access types, conditional types and especially mapped types.