Update Typescript in Angular2 project

For Exact version

For latest release

  • npm install typescript@latest --save-dev

Updating the typescript version in your package.json and running npm install will be enough to upgrade the version you are using for your project.

Typescript 2.x has introduced a new way to manage types, using the @types/... qualifier npm packages - you can still use the typings you have been using before however - but you might wish to update that to the latest version which from npm at the time of writing this answer is 2.0.0

If you are interested, theres more info and a discussion about the new @types here https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/