Domanda

I have a Visual Studio project with typescript files in it and I want to get intellisense working for typescript. I have installed the nuget packages for jQuery, knockout, underscore, and a couple other projects but currently I am unable to get the intellisense from these projects. I have numerous compile errors on all the definitely typed packages, is there something wrong with this project or is there something special I need to do to install them?

Thanks!

È stato utile?

Soluzione

The type bool was renamed to boolean in TypeScript 0.9 - the Definitely Typed declaration has been updated for this change.

If you look at the version history in the GitHub repository, you should be able to grab the older version to work with 0.8.

For example you'll want the June 21st version of jQuery.d.ts as this is before it was updated for 0.9

Altri suggerimenti

If you use nuget. use the -pre switch on install-package. but uninstall the typing first. PM> Uninstall-Package jquery.TypeScript.DefinitelyTyped PM> install-Package jquery.TypeScript.DefinitelyTyped -Pre this has fixes

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top