I'm trying to pass this TypeScript array to a function. I've tried a number of parameter types to make this compile, but none of them seem to work. Here's the array:
var driverTally = [
{ driver: 'driver1', numEscorts: 0},
{ driver: 'driver2', numEscorts: 0},
{ driver: 'driver3', numEscorts: 0}
];
doStuff(driverTally : Array<[string,number]>){ ... }
The compiler keeps saying : "Argument of type '{ driver: string; numEscorts: number; }[]' is not assignable to parameter of type '[string, number][]'.