Relationship between the version of node.js and the version of @types/node Relationship between the version of node.js and the version of @types/node typescript typescript

Relationship between the version of node.js and the version of @types/node


Simply, the major version and minor version tagged in the semver string of @types/node is exactly corresponding to the node's version.

If you check the index.d.ts file of @types/node in DefinitelyTyped repository, you'll see what type of node is this declaration file for through the first line comment at the top of the file:

// Type definitions for Node.js 8.10.x// Project: http://nodejs.org/....