title: Extend native JavaScript array
body: <p>Is there any way to inherit a class from JS native function?</p>
  
  <p>For example, I have a JS function like this:</p>
  
  <pre><code>function Xarray()
  {
      Array.apply(this, arguments);
      //some stuff for insert, add and remove notification
  }
  Xarray.prototype = new Array();
  </code></pre>
  
  <p>I tried to convert it to Typescript but i failed!!</p>
  
  <pre><code>export class Xarray implements Array {
  }
  </code></pre>
  
  <p>The compiler asks me to define all <code>Array</code> interface properties. I know if I need this <code>Xarray.prototype = new Array();</code>, I have to extend <code>Array</code> in TS.</p>
  
  <p>How to extend the JS native object in TS?</p>