00043-easy-exclude 灯下白头人 2023-12-04 80 阅读1分钟 问题 Implement the built-in Exclude<T, U> Exclude from T those types that are assignable to U For example: type Result = MyExclude<'a' | 'b' | 'c', 'a'> // 'b' | 'c' 解答 type MyExclude<T, U> = T extends U ? never : T