I know we can use Omit<> to type a certain object without specific props.
I was hoping we could also use this for string literals:
type possibleStrings = 'A' | 'B' | 'C'
type AorB = Omit<possibleStrings, 'C'>
But when trying to use something like this in a function for its params, I get this error:
Type 'Pick' cannot be used as an index type.