title: "Property ... does not exist on type ..." error when using Typescript
body: <p>I get the error when compiling a file with typescript:</p>
  <pre><code>Property 'qaz' does not exist on type '{ bar: string; }'.
  </code></pre>
  <p>With the following code in the file:</p>
  <pre><code>let foo = {
      bar: &quot;Can you perform a Quirkafleeg?&quot;
  }
  
  let { qaz = &quot;I'm feeling manic!&quot; } = foo;
  console.log(qaz);
  console.log(qaz.bar);
  </code></pre>
  <p>Based on example code on the page: <a href="https://zellwk.com/blog/es6/" rel="nofollow noreferrer">https://zellwk.com/blog/es6/</a> in the section &quot;Destructuring objects&quot;.</p>
  <p>I was expecting to get the second string as output, but I'm a bit confused as there is another example on that page along the lines of:</p>
  <pre><code>let { fizz: faz = &quot;Eugene was my friend.&quot; } = foo; // as defined above
  console.log(fizz);
  console.log(fizz.faz);
  </code></pre>
  <p>Which gives a similar error:</p>
  <pre><code>Property 'fizz' does not exist on type '{ bar: string; }'.
  </code></pre>