Install:npm install -g typescript.

For React: use.tsx(since 1.6).

Large codebases:

Docs:

Installing typings (obsolete in favor of npm @types/foo):

  • npm install -save-dev typings
  • ./node_modules/.bin/typings install --source dt google.maps --global --save : --save updates typings.json

Publishing typescript npm packages:

Go to index of articles.

Share on