Using TypeScript, I am trying to figure out how to do array destructuring in the arguments list.
We can use object destructuring like so:
let foo = f
An array of fixed length and types is also called a tuple in TS. We can destructure a tuple argument like:
tuple
let bar = function ([desc, opts, fn]: [string, {}, Function]) { } bar([ 'yes', {}, function () { } ]);