Get the instance type from a class constructor.
Section: Common Utility Type Recipes
Use `InstanceType<T>`
typescript
typescript
class UserService {}
type UserServiceInstance = InstanceType<typeof UserService>;Explanation
Useful in dependency injection helpers or factory utilities.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Common Utility Type Recipes