diff --git a/lib/workers/repository/init/types.ts b/lib/workers/repository/init/types.ts index cd1cbab02448952508e52eb8870044cc3dea3cbc..96590b420a5df436bee7da409a4b28bed5de3a54 100644 --- a/lib/workers/repository/init/types.ts +++ b/lib/workers/repository/init/types.ts @@ -1,7 +1,7 @@ -export type RepoConfigError = { +export interface RepoConfigError { validationError: string; validationMessage: string; -}; +} export interface RepoFileConfig { configFileName?: string; diff --git a/lib/workers/repository/process/extract-update.ts b/lib/workers/repository/process/extract-update.ts index e0777d8c8a466a8044479491b8078e0af4155db6..eec43b5e44374ad3509225641210979cfaba345a 100644 --- a/lib/workers/repository/process/extract-update.ts +++ b/lib/workers/repository/process/extract-update.ts @@ -14,11 +14,11 @@ import { fetchUpdates } from './fetch'; import { sortBranches } from './sort'; import { WriteUpdateResult, writeUpdates } from './write'; -export type ExtractResult = { +export interface ExtractResult { branches: BranchConfig[]; branchList: string[]; packageFiles: Record<string, PackageFile[]>; -}; +} export interface StatsResult { fileCount: number; diff --git a/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts b/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts index fb2c6bcda085abcb4c41c0672d183c2899a560c6..4163f4412eb36745d01fcf361b9e265133732410 100644 --- a/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts +++ b/lib/workers/repository/update/branch/execute-post-upgrade-commands.ts @@ -18,10 +18,10 @@ import { sanitize } from '../../../../util/sanitize'; import { compile } from '../../../../util/template'; import type { BranchConfig, BranchUpgradeConfig } from '../../../types'; -export type PostUpgradeCommandsExecutionResult = { +export interface PostUpgradeCommandsExecutionResult { updatedArtifacts: FileChange[]; artifactErrors: ArtifactError[]; -}; +} export async function postUpgradeCommandsExecutor( filteredUpgradeCommands: BranchUpgradeConfig[], diff --git a/lib/workers/repository/update/branch/status-checks.ts b/lib/workers/repository/update/branch/status-checks.ts index 023cd083ee2aaec453f9885c51b254ddc1f827d3..93aa9366184a16e796eb2fb075de2495f52c0900 100644 --- a/lib/workers/repository/update/branch/status-checks.ts +++ b/lib/workers/repository/update/branch/status-checks.ts @@ -51,10 +51,10 @@ async function setStatusCheck( } } -export type StabilityConfig = RenovateConfig & { +export interface StabilityConfig extends RenovateConfig { stabilityStatus?: BranchStatus; branchName: string; -}; +} export async function setStability(config: StabilityConfig): Promise<void> { if (!config.stabilityStatus) { @@ -74,10 +74,10 @@ export async function setStability(config: StabilityConfig): Promise<void> { ); } -export type ConfidenceConfig = RenovateConfig & { +export interface ConfidenceConfig extends RenovateConfig { confidenceStatus?: BranchStatus; minimumConfidence?: MergeConfidence; -}; +} export async function setConfidence(config: ConfidenceConfig): Promise<void> { if ( diff --git a/lib/workers/repository/update/pr/automerge.ts b/lib/workers/repository/update/pr/automerge.ts index fd875b9bb5b96a0d5cd96c1571e6af2442b5a245..20ba1bc1efdad4d5936c55f8421fd97118105a41 100644 --- a/lib/workers/repository/update/pr/automerge.ts +++ b/lib/workers/repository/update/pr/automerge.ts @@ -27,11 +27,11 @@ export enum PrAutomergeBlockReason { OffSchedule = 'off schedule', } -export type AutomergePrResult = { +export interface AutomergePrResult { automerged: boolean; branchRemoved?: boolean; prAutomergeBlockReason?: PrAutomergeBlockReason; -}; +} export async function checkAutoMerge( pr: Pr, diff --git a/lib/workers/repository/update/pr/index.ts b/lib/workers/repository/update/pr/index.ts index d29209423c6a2c6dd74b60a5cb4b664e0ae0cdd0..dfc79500d4d1a45062606a160de5bfa31ca69c50 100644 --- a/lib/workers/repository/update/pr/index.ts +++ b/lib/workers/repository/update/pr/index.ts @@ -51,15 +51,15 @@ export function getPlatformPrOptions( }; } -export type ResultWithPr = { +export interface ResultWithPr { type: 'with-pr'; pr: Pr; -}; +} -export type ResultWithoutPr = { +export interface ResultWithoutPr { type: 'without-pr'; prBlockedBy: PrBlockedBy; -}; +} export type EnsurePrResult = ResultWithPr | ResultWithoutPr;