title: What type does `getBoundingClientRect()` return?
body: <p>Maybe this is a stupid question.</p>
  
  <p>What type does <code>getBoundingClientRect()</code> return? I have the following errors:</p>
  
  <pre><code>var logo1: HTMLElement = document.getElementById('test'); 
  var logo1TextRectangle: DOMRect = logo1.getBoundingClientRect(); &lt;- error
  </code></pre>
  
  <p>error TS2304: Cannot find name 'DOMRect'.</p>
  
  <p>I watch this <a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect" rel="noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect</a></p>
  
  <hr>
  
  <pre><code>var logo1TextRectangle: nsIDOMClientRect = logo1.getBoundingClientRect(); &lt;- error
  </code></pre>
  
  <p>error TS2304: Cannot find name 'nsIDOMClientRect'.</p>
  
  <p>and this <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIDOMClientRect" rel="noreferrer">https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIDOMClientRect</a></p>
  
  <hr>
  
  <p>I know I can just use this:</p>
  
  <pre><code>var logo1TextRectangle: any = logo1.getBoundingClientRect();
  </code></pre>
  
  <p>but can anybody tell me what is the returned type, or tell me a link where I can take a look to the returned types. Thanks and sorry for my English.</p>