Extract the instance type from a constructor function.
A constructor function
Returns the type of objects created by a constructor. This is particularly useful when working with factories or DI patterns.
class User { id: number; name: string; }type UserInstance = InstanceType< typeof User >; // User Copy
class User { id: number; name: string; }type UserInstance = InstanceType< typeof User >; // User
Extract the instance type from a constructor function.