type-challenges
type-challenges copied to clipboard
3 - Omit
type MyOmit<T, U extends keyof T> = {
[K in keyof T as K extends U ? never : K]: T[K]
}