UNPKG

513 BTypeScriptView Raw
1/**
2 * Enum describing types of version differences
3 */
4import { Version } from './types';
5export declare enum VersionUpgrade {
6 NONE = 0,
7 PATCH = 1,
8 MINOR = 2,
9 MAJOR = 3
10}
11/**
12 * Return the upgrade type from the base version to the update version.
13 * Note that downgrades and equivalent versions are both treated as `NONE`.
14 * @param base base list
15 * @param update update to the list
16 */
17export declare function getVersionUpgrade(base: Version, update: Version): VersionUpgrade;