TypeScript definition installer module for NodeJS

When developing a NodeJS application in TypeScript you need the definition files for the modules you are going to use. To make it easier to download them there is a module you can install called tsd.

To install tsd:

npm i -g tsd

With tsd you can type:

tsd install express

The above will create folders and a file in your project:

typings
|- express
   |- express.d.ts

You can watch how to do it here:

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s