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