I am wondering what is the recommended practice by Angular Team? I couldn't find it anywhere in the docs, and I am wondering what are the differences between the two. Any insights are more than welcome!
It seems like the situation is changing again. From what I understand, Typescript 2.0 will use npm
(Node Package Manager) to manage Typescript declarations for existing Javascript libraries.
The example given is that you can do:
npm install --save @types/lodash
Which will then do two things:
For more information, please refer to this announcement from Microsoft: The Future of Declaration Files
And also this Github issue: Improve Declaration File Acquisition.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With