title: Array destructuring in parameters list, with TypeScript
body: <p>Using TypeScript, I am trying to figure out how to do array destructuring in the arguments list.</p>
  
  <p>We can use object destructuring like so:</p>
  
  <pre><code>let foo = function({firstname, lastname}){...}
  
  foo({
    firstname: 'ralph',
    lastname: 'lauren'
  });
  </code></pre>
  
  <p>I am wondering if we can do the same thing with array destructuring, it would be very useful for me, something like:</p>
  
  <pre><code>let bar = function([desc, opts, fn]){...}
  
  bar([
    'yes',
     {},
     function(){}
  ]);
  </code></pre>
  
  <p>is it possible to do this with an array with TypeScript?</p>