Often times I find myself importing a TypeScript function into another file. This particular function takes positional arguments:
import { doThing } from "./somefile";
doThing("banana", "lemon", "apple", "grape", "cherry");
While I can hover over the doThing
function to see its signature, it becomes challenging to match up the function's parameters with the actual arguments being passed in when there are multiple arguments.
For example, in a file like somefile.ts
:
export const doThing = function (one, two, three, four, five) {
// ...
};
How do I determine that the argument cherry
corresponds to the parameter five
?
Is there a way to view the mapping between function arguments and calling arguments in TypeScript / vscode?