Type alias InferThis<T>

InferThis<T>: T extends ((this, ...parameters) => any)
    ? U
    : never

Returns the type of this for a given function type

Type Parameters

  • T