npm install --save @types/semver
This package contains type definitions for semver (https://github.com/npm/node-semver).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/semver/v6.
These definitions were written by Bart van der Schoor, BendingBender, Lucian Buzzo, Klaus Meinhardt, and ExE Boss.