Type alias Extract<T, U>

Extract<T, U>: T extends U
    ? T
    : never

Extract from T those types that are assignable to U

Type Parameters

  • T
  • U