title: Typescript Error: Property 'append' does not exist on type 'HTMLElement'
body: <h2>The Problem:</h2>
  
  <p>I'm receiving a Typescript 2.2.1 compilation error when trying to append a compiled angular 1.5 template to an existing <code>HTMLElement</code>.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>$document.find(scope.target)[0].append($compile(menu)(scope)[0]);
  </code></pre>
  
  <p><strong>Compile error:</strong></p>
  
  <pre><code>[ts] Property 'append' does not exist on type 'HTMLElement'
  </code></pre>
  
  <p>I've searched through the type definitions and don't see a signature for <code>append()</code>.  </p>
  
  <p>Any ideas as to which type or version of typescript I should be using?</p>
  
  <p>Thanks!</p>