Should I use tsd or typings?

I am wondering what is recommended for the Angular team? I could not find it anywhere in the documents, and I wonder what the differences are between them. Any ideas are more than welcome!

+7
angular typescript tsd
source share
3 answers
+9
source share

It seems the situation is changing again. As far as I understand, Typescript 2.0 will use npm (Node Package Manager) to manage Typescript declarations for existing JavaScript libraries.

The above example is what you can do:

 npm install --save @types/lodash 

What will two things do then:

  • It captures the declaration files for lodash and saves them in a directory named @ types / lodash in our node_modules package.
  • Saves this as a dependency in our package. json

For more information, see this announcement from Microsoft: The Future of Declaration Files

And also this Github question: Improve the receipt of the declaration file .

+13
source share

yes, as indicated in angular2 changelog from beta6 https://github.com/angular/angular/blob/master/CHANGELOG.md#200-beta6-2016-02-11

  • Typics are no longer included in the distribution
+3
source share

All Articles