title: TypeScript Definition for Backbone.Syphon
body: <p>I've come across an unusual hurdle with TypeScript regarding definitions. I've attempting to write a definition file for the (very simple) <a href="https://github.com/derickbailey/backbone.syphon/" rel="nofollow">Backbone.Syphon</a> library. The Backbone.Syphon object contains only two methods, <code>serialize</code> and <code>deserialize</code>. However, I've been unable to successfully write a definition file.</p>
  
  <p>My existing definition file is as follows (leaving off the deserialize for now, because its orthogonal to the question at hand):</p>
  
  <pre><code>define module Backbone
    class Syphon {
      serialize(view: Backbone.View, options: any): any;
    }
  }
  </code></pre>
  
  <p>Yet, when attempting to use <code>Backbone.Syphon.serialize()</code> anywhere, the error I receive is:</p>
  
  <p><code>error TS2094: The property 'serialize' does not exist on value of type 'typeof Backbone.Syphon'</code></p>