title: Anonymous class in Typescript
body: <p>Getting some trouble to do the following in typescript. I've the following interface defined :</p>
  
  <pre><code> interface RendererCallback {
  
          getNode():HTMLElement;
  
          getTable();
   }
  </code></pre>
  
  <p>There is a method expecting a RenderCallback object like :</p>
  
  <pre><code>render( callback:RendererCallback ) 
  </code></pre>
  
  <p>How do I create an anonymous instance in the middle of my code :</p>
  
  <pre><code>myObject.render( new .. {
    getNode() {
      return myNode;
    }
    getTable() {
      .. some code...
      return something;
    }
   } );
  </code></pre>