Type alias Omitype<T, U>

Omitype<T, U>: {
    [P in keyof T as T[P] extends U
        ? never
        : P]: T[P]
}

Type Parameters

  • T

  • U