title: jQuery UI widgets in TypeScript
body: <p>I am using a jQuery UI slider in a TypeScript application, using TypeScript 0.9 and the latest <code>jqueryui.d.ts</code> definition file downloaded from DefinitelyTyped:</p>
  
  <pre><code>/// &lt;reference path="jquery/jquery.d.ts" /&gt;
  /// &lt;reference path="jqueryui/jqueryui.d.ts" /&gt;
  
  . . .
  
  $("#sideRestitution").slider({
    min: 0.0,
    max: 1.0,
    step: 0.01,
    value: game.sideRestitution,
    change: (event, ui) =&gt; {
      game.sideRestitution = ui.value;
    }
  });
  </code></pre>
  
  <p>It works fine, but I cannot figure out how to use the widget in a 'typed' way: in the above code <code>change</code> is of type <code>any</code>. <code>jqueryui.d.ts</code> defines a <code>Slider</code> interface with the events and methods specific to the slider widget, but the only method or property returning such an interface is the global <code>$.ui.slider</code>. </p>
  
  <p>How do I access / use the <code>Slider</code> interface for a slider widget I created? </p>
  
  <p>What is the use/purpose of <code>$.ui.slider</code>?</p>