dingxyang/type-challenges

3 - 实现 omit

dingxyang opened this issue · 0 comments

type MyOmit<T, K extends keyof T> = { [ P in keyof T as P extends K ? never : P] :  T[P] }