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!
tsd seems to be deprecated in favor of typings and Angular is moving to typings.
I have seen it mentioned several times that tsd is deprecated
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:
- Grabs the declaration files for lodash and saves it to a directory named @types/lodash in our package's node_modules.
- Saves that as a dependency in our package.json
For more information, please refer to this announcement from Microsoft: The Future of Declaration Files
And also this Github issue: Improve Declaration File Acquisition.
tsd seems to be deprecated in favor of typings and Angular is moving to typings.
I have seen it mentioned several times that tsd is deprecated
typings
is not helping in install defintions for 3rd party tools like jquery! tsd
was more helpful. what do you think? –
Medeah yeah as stated in angular2's changelog from beta6 https://github.com/angular/angular/blob/master/CHANGELOG.md#200-beta6-2016-02-11
- typings are no longer included in the distribution
© 2022 - 2024 — McMap. All rights reserved.
typings
is not helping in install defintions for 3rd party tools like jquery!tsd
was more helpful. what do you think? – Medeah