MyConstructorParameters
HardImplement MyConstructorParameters which extracts constructor parameter types.
TypeScript•UTF-8
Run your code to see results.
Click the Run button above
MyConstructorParameters
HardImplement MyConstructorParameters which extracts constructor parameter types.
Examples:
Input 1: type Params = MyConstructorParameters<typeof User>
Output 1: [string, number]
Output
Run your code to see results.