6. 实现Omit<T, K>

TypeScript

  -通过 / -执行

Omit<T, K>返回一个从T的属性中剔除掉K过后的type。

请自行实现MyOmit<T, K>

type Foo = {  a: string  b: number  c: boolean}type A = MyOmit<Foo, 'a' | 'b'> // {c: boolean}type B = MyOmit<Foo, 'c'> // {a: string, b: number}type C = MyOmit<Foo, 'c' | 'd'> // {a: string, b: number}

争取5分钟以内搞定这个问题