MyInstanceType

Medium

Implement MyInstanceType which extracts the instance type of a class.

Examples:

Input 1: type UserInstance = MyInstanceType<typeof User>
Output 1: User
Output
Run your code to see results.