title: extending jquery static typedef in typescript
body: <p>So basically I want to extend the <code>JQueryStatic</code> interface to accommodate my jquery extensions.</p>
  
  <p>Can someone guide me on how to make it work? Here's what I have</p>
  
  <pre><code>interface JquerySocialExtension { 
      (selector: JQuery.Selector): {social: (options?) =&gt; any };
  };
  export interface JQueryStaticExtended extends JQueryStatic, JquerySocialExtension { };
  
  let $1 : JquerySocialExtension
  let $2: JQueryStaticExtended;
  
  $1('div.mine').social(); //no compile error
  $2('div.mine').social(); //gives compile error
  </code></pre>
  
  <p>Now I'd assume that since I extend <code>JQueryStaticExtended</code> with both  <code>JQueryStatic</code> and <code>JquerySocialExtension</code>, it should merge both the implementations but unfortunately it fails. </p>