Type alias ThisParameterType<T>

ThisParameterType<T>: T extends ((this, ...args) => any)
    ? U
    : unknown

Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.

Type Parameters

  • T