Samuel Jenks
Samuel Jenks

Reputation: 1172

Determine Angular's supported TypeScript version

I'm looking for a documentation table somewhere that matches TypeScript versions with Angular versions. Does the information exist?

Upvotes: 8

Views: 16202

Answers (2)

a.b.
a.b.

Reputation: 61

You can determine the supported TypeScript version for a given version of Angular CLI directly from the source:

  1. Go to Angular CLI on GitHub.
  2. Choose the desired release under Releases.
  3. Click on the tag with the release number in the left-hand summary of the commit details. (This takes you to the source of the chosen release.)
  4. Open the file package.json.
  5. You find the supported TypeScript version in the property typescript under devDependencies.

Upvotes: 6

theMayer
theMayer

Reputation: 16167

The Angular Web Site contains details on how to upgrade from one Angular version to another. In the details below, it will explain the minimum supported TypeScript version for each release. It will also mention the required minimum Node.js version.

For example, upgrading from 7 to 8 yields the following:

  • Make sure you are using Node.js 10 or later.
  • Angular now uses TypeScript 3.4

Note: If you're just looking for every detail, navigate to the source package.json file for Angular CLI. In there is a line which specifies the required version of TypeScript. You can navigate among releases by clicking the Branch dropdown and selecting Tags, where you pick from among the various versions.

Upvotes: 9

Related Questions