MyInstanceType
MediumImplement MyInstanceType which extracts the instance type of a class.
TypeScript•UTF-8
Run your code to see results.
Click the Run button above
MyInstanceType
MediumImplement 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.