From 8b42b62aa83b9de2582e535d4154b7052b2b8c81 Mon Sep 17 00:00:00 2001 From: Rhys Arkins Date: Thu, 18 Feb 2021 12:02:26 +0100 Subject: [PATCH] refactor: UpdateTypeConfig --- lib/workers/repository/process/lookup/update-type.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/workers/repository/process/lookup/update-type.ts b/lib/workers/repository/process/lookup/update-type.ts index 043f04e851..2ec97d4dba 100644 --- a/lib/workers/repository/process/lookup/update-type.ts +++ b/lib/workers/repository/process/lookup/update-type.ts @@ -1,9 +1,14 @@ import { UpdateType } from '../../../../config'; import * as allVersioning from '../../../../versioning'; -import { LookupUpdateConfig } from './common'; + +export interface UpdateTypeConfig { + separateMajorMinor?: boolean; + separateMultipleMajor?: boolean; + separateMinorPatch?: boolean; +} export function getUpdateType( - config: LookupUpdateConfig, + config: UpdateTypeConfig, versioning: allVersioning.VersioningApi, currentVersion: string, newVersion: string