You're possibly wondering what it's like going from using TSD to Typings. Using Typings is very similar to using TSD. Where you previously would have:
tsd install react --save
You would now:
typings install dt~react --global --save
Likewise, this:
tsd query react
becomes:
typings search react
The --global
flag tells Typings to accept type definitions that are "global" in nature. Currently, DefinitelyTyped typings are all "global".
rm -rf typings
typings init --upgrade
rm tsd.json
typings install
You may have created a .tsdrc
file in your user or project directory if you were behind a firewall, used a proxy, or had setup a github token. Change the filename to .typingsrc In Windows Explorer, type .typingsrc.
and the last period is removed automatically.
Update the names of two properties in .typingsrc
:
rename
token
togithubToken
rename
strictSSL
torejectUnauthorized
Finally, update your tsconfig.json
according to the Typings resolution you wish to include. For example:
{
"files": [
"typings/index.d.ts",
"src/main.ts"
]
}