diff --git a/lib/modules/manager/types.ts b/lib/modules/manager/types.ts
index 40e4586a5bdd4b070d9361586a8cbaf6c7ef24ab..754d68da8a2ef71f431538889cfa2d69499d1a40 100644
--- a/lib/modules/manager/types.ts
+++ b/lib/modules/manager/types.ts
@@ -187,10 +187,15 @@ export interface ArtifactError {
   stderr?: string;
 }
 
-export interface UpdateArtifactsResult {
-  artifactError?: ArtifactError;
-  file?: FileChange;
-}
+export type UpdateArtifactsResult =
+  | {
+      file?: FileChange;
+      artifactError?: undefined;
+    }
+  | {
+      file?: undefined;
+      artifactError?: ArtifactError;
+    };
 
 export interface UpdateArtifact<T = Record<string, unknown>> {
   packageFileName: string;