Is it possible in TypeScript to define a method that can only be called with one parameter (a Subscriber) but needs to pass multiple values grouped together in a tuple?
I'm looking for a way in the subscriber to access each variable of the tuple as its own name. Ideally, I would like syntax like:
([name:string, age:number, salary: number]) => {
console.log("our name is " + name);
}
Can TypeScript support this requirement?