Typics install a specific version of definition files

I am new to TypeScript. I want to install a specific version of the angular definition file in my application.

Using TSD , I can use the following command

 tsd install angular -v "1.4.0" -rso 

Since TSD deprecated, I switched to typings to automate the installation of definition files.

My question is using typings , is it possible to install a specific version of the angular definition file? If so, which team in typings ?

Update:

I tried the commands below, but they did not work.

 typings install angular@1.4.0 

and

 typings install angular@1.4.0 --ambient 

The error messages are as follows:

 $ typings install angular@1.4.0 --ambient typings ERR! message Unable to find "angular" for "dt" in the registry. Did you want to install ambient typings with the ambient flag? If you can contribute these typings, please help us: https://github.com/typings/registry typings ERR! caused by https://api.typings.org/entries/dt/angular/versions/1.4.0/latest responded with 404, expected it to equal 200 typings ERR! cwd /Users/idolezalova/projects/wfm typings ERR! system Darwin 15.4.0 typings ERR! command "/Users/idolezalova/.nvm/versions/node/v4.3.1/bin/node" "/Users/idolezalova/.nvm/versions/node/v4.3.1/bin/typings" "install" " angular@1.4.0 " "--ambient" typings ERR! node -v v4.3.1 typings ERR! typings -v 0.7.12 typings ERR! If you need help, you may report this error at: typings ERR! <https://github.com/typings/typings/issues> 
+5
source share
1 answer

Via:

 $ typings install -h typings install (with no arguments, in package directory) typings install <pkg>[@<version>] [ --source [dt | npm | github | bower | common | shared | lib | env | global] ] typings install file:<path> typings install github:<github username>/<github project>[/<path>][#<commit>] typings install bitbucket:<bitbucket username>/<bitbucket project>[/<path>][#<commit>] typings install <http:// url> Aliases: i, in Options: [--name] [--save|--save-dev] [--ambient] [--production] 

This means that this command should work (you also need to add the --ambient flag because it has not been ported from DefinitelyTyped yet):

 typings install angular@1.4.0 --ambient 
+4
source

Source: https://habr.com/ru/post/1246877/


All Articles