UNPKG

npm-check-updates

Version:

Find newer versions of dependencies than what your package.json allows

15 lines (14 loc) 444 B
import { Version } from '../types/Version'; import { VersionSpec } from '../types/VersionSpec'; /** * Check if a version satisfies the latest, and is not beyond the latest). Ignores `v` prefix. * * @param current * @param latest * @param downgrade Allow downgrading * @returns */ declare function isUpgradeable(current: VersionSpec, latest: Version, { downgrade }?: { downgrade?: boolean; }): boolean; export default isUpgradeable;