In this scenario, I am facing a specific dilemma.
type fnArgs = [string, number];
function test(a: string, b: number): void {}
const x: fnArgs = ['a', 2];
test(...x);
What I find interesting is that the values being passed to the test function are coming from an array x. This can be demonstrated in this demo.
Now, my question is whether I can use type fnArgs for the function signature as well. It seems redundant to define string, number twice.