TypeScript Typings for JavaScript

It’s no secret that I am a fan of TypeScript.

But I don’t use it for everything, I still write plenty of regular JavaScript, mostly in ES-something-or-other.

I am also a long time Vim user, but I’ve slowly been moving over to using Visual Studio Code quite a bit. Today I want to show you a workflow that isn’t just useful for the ArcGIS API for JavaScript, but pretty much any JavaScript library you may want to use that provides TypeScript Declaration Files.

That is, you can let your IDE know that you have these typings installed and when you write your JavaScript code, you can get intellisense based on the typings.

Pretty cool right?

This video just goes over how you can do that and you get to watch me fumble through misspellings and writing some JavaScript just to see the kind of intellisense and code completion you can get from this workflow.

Share on Google+0Tweet about this on TwitterShare on Facebook0Share on LinkedIn5Share on Reddit0