title: Typescript property does not exist on type {}
body: <p>I have the following code in <strong>Typescript</strong>. Why does the compiler throws an error?</p>
  
  <pre><code>var object = {};
  Object.defineProperty(object, 'first', {
       value: 37,
       writable: false,
       enumerable: true,
       configurable: true
  });
  console.log('first property: ' + object.first);
  </code></pre>
  
  <blockquote>
    <p>js.ts(14,42): error TS2339: Property 'first' does not exist on type
    '{}'.</p>
  </blockquote>
  
  <p>It's the same code snippet like in the <a href="https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty" rel="noreferrer">documentation</a> of mozilla (examples section).</p>