Skip to content Skip to sidebar Skip to footer

Typescript @types Version Related To Library Version

Can anyone explain the versioning behind TypeScript @types https://github.com/DefinitelyTyped/DefinitelyTyped For example: I assumed that if I was using mocha@3.4.2 then I would be

Solution 1:

Unfortionaly it may be just a "doing it wrong" matter. Generally, It's a good practice to give the @types version the same version of the library itself. But regarding the patch part of the semantic version, it will differ in most cases.

Possible causes why versions may differ:

  1. There are no updates in types so the library has been patched for example but the @types one hasn't.
  2. @types library is not well maintained.
  3. @types library has many bugs and patches.

Nice to mention:

You can definitely contribute to any @types library and help to keep it well versioned.

Post a Comment for "Typescript @types Version Related To Library Version"