Implement the built-in Exclude<T, U>
Exclude<T, U>
Exclude from T those types that are assignable to U
T
U
For example:
MyExclude<'a' | 'b' | 'c', 'a'> // expected: 'b' | 'c'
Code