In typings the new tsd manager for typescript definitions after reading the doc's I am confused on what the different sources mean and how to install by specifying the source and version
Example if you search for foundation-sites by
typings search foundation-sites
the result is
foundation-sites global 2016-02-11T00:39:58.000Z 1 foundation-sites dt 2016-03-17T12:06:54.000Z 1 http://foundation.zurb.com/
This command typings install foundation-sites --save
fails.
I then added the ambient flag and it worked, but from my research both global and dt are considered ambient, although I still don't fully understand what ambient means in the context of dt being ambient and also global being ambient. See page describing source in more detail. This page lists 3 ambients in additon to the dt that we already know about
lib for shared environment functionality (ambient)
env for programming environment typings (ambient)
global for global libraries (ambient)
What do the above differences mean
If you have multiple sources as in the above search results and just use -ambient with no source specified then
1)Which one gets installed and why? The one from global dated earlier or dt dated later.
Can you provide the correct install command for choosing a source and version. Please include an example for non-ambient repo's like github versus the ambient repo's such as global and dt
2)Do both global and dt source require --ambient flag?
3)Do typings only install automatically if they are in the npm folder in the typings registry.
Example, I can install moment using typings install moment
and it works. From what I can tell it works because it is listed in the npm folder in the typings registry.
Running the command as suggested by Corey typings install dt!foundation-sites
results in error bash: !foundation-sites: event not found
FIXED: Thanks to Corey -- For bash users escape with a \ example
typings install dt\!foundation-sites
typings install dt~foundation-sites --global --save
– Madlin