Type alias PickType<T, U>

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

Type Parameters

  • T

  • U