title: How to get knockout imported in typescript with requirejs
body: <p>I have been playing around with typescript for a few hours now and havent figured out how i import knockout together with my modules?</p>
  
  <p>Without typescript i would need it in my <code>define(["require", "exports", "knockout" ...],function(... , ko)</code>, but i havent managed to get the typescript to generate that.</p>
  
  <p>I dont know what the difference is from jquery to knockout, $ works fine, but ko is undefined. </p>
  
  <pre><code>///&lt;reference path="../knockoutd.d.ts" /&gt;
  ///&lt;reference path="../jquery.d.ts" /&gt;
  import dl = module("DataLayer");
  import vm1 = module("AppBarViewModel");
  import vm2 = module("Nav2ViewModelCommander");
  import vm3 = module("IdentityViewModel");
  export class AppViewModel {
  ...
  }
  </code></pre>
  
  <p>results in :</p>
  
  <pre><code>    define(["require", "exports", "DataLayer", "AppBarViewModel", "Nav2ViewModelCommander",  "IdentityViewModel"], function(require, exports, __dl__, __vm1__, __vm2__, __vm3__) {
      var dl = __dl__;
  
      var vm1 = __vm1__;
  
      var vm2 = __vm2__;
  
      var vm3 = __vm3__;
  </code></pre>
  
  <h1>update</h1>
  
  <p>With <code>///&lt;amd-dependency path="knockout" /&gt;</code></p>
  
  <pre><code>define(["require", "exports", "DataLayer", "AppBarViewModel", "Nav2ViewModelCommander", "IdentityViewModel", "knockout"], function(require, exports, __dl__, __vm1__, __vm2__, __vm3__) {
      var dl = __dl__;
  
      var vm1 = __vm1__;
  
      var vm2 = __vm2__;
  
      var vm3 = __vm3__;
  </code></pre>