type-challenges icon indicating copy to clipboard operation
type-challenges copied to clipboard

3 - Omit

Open Tubring25 opened this issue 9 months ago • 0 comments

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

Tubring25 avatar May 08 '24 09:05 Tubring25