Type alias InstanceType<T>

InstanceType<T>: T extends (abstract new (...args) => infer R)
    ? R
    : any

Obtain the return type of a constructor function type

Type Parameters

  • T extends (abstract new (...args) => any)