Let us say we have
type U = A | B | C
and we need type U without some of it's options
function f<T option U>(u: U): U without T {...}
How can we express that
- U has type union
- T is an option of U
- The returned type is like U but without some option
?