Working with Tuple Types
const person: [string, number] = ["Stefan", 40];
function hello(...args: [name: string, msg: string]): {
// ...
}
hello(...person);
const person: [string, number] = ["Stefan", 40];
function hello(...args: [name: string, msg: string]): {
// ...
}
hello(...person);