Problem Statement
Extract function parameters tuple:
Explanation
Parameters<T> gives you the tuple of argument types for a function type T.
Code Solution
SolutionRead Only
function f(a: string, b: number) {}
type P = Parameters<typeof f>; // [string, number]