function f([a,b,c]) {
// this works but a,b and c are any
}
it's possible write something like that?
function f([a: number,b: number,c: number]) {
// being a, b and c typed as number
}
This is the proper syntax for destructuring an array inside an argument list:
function f([a,b,c]: [number, number, number]) {
}