title: 100+ errors in jQuery.d.ts since getting latest via nuget in MVC application
body: <p>Ever since I updated to the latest <code>jQuery.d.ts</code> definition file, using the Visual Studio NuGet package manager, I now get 100s of errors within the jQuery.d.ts file.</p>
  
  <p>The pattern to all the errors is vertical lines like this:</p>
  
  <pre><code>index(selector: string|JQuery|Element): number;
  </code></pre>
  
  <p>which I assume indicates optional types. The errors mostly look like:</p>
  
  <blockquote>
    <p>\Scripts\typings\jquery\jquery.d.ts(2797,34): error TS1005: Build: ',' expected.</p>
  </blockquote>
  
  <p>The default Build Action was <code>TypeScriptCompile</code>, but changing that to <code>none</code> has no effect.</p>
  
  <p>I am running Visual studio 2013 Professional release 4, so assumed I would have the latest TypeScript version, but this looks like a versioning issue.</p>
  
  <p>Any ideas on how to resolve the problem.</p>