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

3 - Omit

Open kyu-rong opened this issue 5 months ago • 0 comments

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

kyu-rong avatar Jun 17 '26 01:06 kyu-rong