refactor: UpdateTypeConfig

This commit is contained in:
Rhys Arkins 2021-02-18 12:02:26 +01:00
parent 436abf51de
commit 8b42b62aa8

View file

@ -1,9 +1,14 @@
import { UpdateType } from '../../../../config'; import { UpdateType } from '../../../../config';
import * as allVersioning from '../../../../versioning'; import * as allVersioning from '../../../../versioning';
import { LookupUpdateConfig } from './common';
export interface UpdateTypeConfig {
separateMajorMinor?: boolean;
separateMultipleMajor?: boolean;
separateMinorPatch?: boolean;
}
export function getUpdateType( export function getUpdateType(
config: LookupUpdateConfig, config: UpdateTypeConfig,
versioning: allVersioning.VersioningApi, versioning: allVersioning.VersioningApi,
currentVersion: string, currentVersion: string,
newVersion: string newVersion: string