Skip to content

Commit

Permalink
refactor: Make "UpdateArtifactsResult" a union type (#28884)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov authored May 7, 2024
1 parent cbbfcd1 commit d8eaf6b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/modules/manager/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d8eaf6b

Please sign in to comment.