Should you be able to load these files into Visual Studio, you would get the same type of IntelliSense that you are used to with C#. True, this IntelliSense will only be for the definition files you include, but at the end of the day, that is still a HUGE win. And if you are working on big legacy projects, you can benefit from these type definitions without any changes to your code base.
So it's a gain without a pain.
You'll be amazed by how easy this is.
First of all you'll need to install the VS TypeScript tools. I'm not entirely sure this step is absolutely necessary, but let's dot it all the same. Go to 'Tools' > 'Extenstions and Updates' and type in 'typescript' in the search box. Install the first one you find, which is at time of writing 'TypeScript 1.8.4 for Visual Studio 2015'.
We'll take AngularJS as an example.
No IntelliSense what-so-ever. You could learn the complete AngularJS API by heart and work like that, or you could make it yourself a whole lot easier.
Start by installing the Nuget package displayed below in your web project (if you search for 'typescript'):
Installing this Nuget will add the necessary .d.ts files in your web project. You'll find them in the 'Scripts/typings' folder.
Visual Studio will automatically pick these files up and provide IntelliSense if possible. So our previous example now looks like this:
And that's what you get, just by installing a Nuget package! I was really amazed by how easy this is :). You can find almost every corresponding TypeScript definition file you need, right there on Nuget.
Happy Coding !
Fill in the form below and we’ll get back to you as soon as possible.
Thanks for getting in touch!Oops. You seem to have written your full name in invisible ink. Please enter it so we can read it. Oops. You seem to have written your company in invisible ink. Please enter it so we can read it. It seems your e-mail doesn’t exist. Please enter a real one so we can contact you. Oops. You seem to have written your telephone in invisible ink. Please enter it so we can read it. Sorry, we could not send the enquiry.