aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/quality-profiles.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/quality-profiles.ts')
-rw-r--r--server/sonar-web/src/main/js/api/quality-profiles.ts13
1 files changed, 4 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/api/quality-profiles.ts b/server/sonar-web/src/main/js/api/quality-profiles.ts
index f8ed8782c79..21a61af4e4f 100644
--- a/server/sonar-web/src/main/js/api/quality-profiles.ts
+++ b/server/sonar-web/src/main/js/api/quality-profiles.ts
@@ -199,23 +199,18 @@ export function getProfileChangelog(
export interface RuleCompare {
cleanCodeAttributeCategory?: CleanCodeAttributeCategory;
- impacts: SoftwareImpact[];
+ impacts?: SoftwareImpact[];
key: string;
- left?: { params: Dict<string>; severity: string };
+ left?: { impacts?: SoftwareImpact[]; params?: Dict<string>; severity?: string };
name: string;
- right?: { params: Dict<string>; severity: string };
+ right?: { impacts?: SoftwareImpact[]; params?: Dict<string>; severity?: string };
}
export interface CompareResponse {
inLeft: Array<RuleCompare>;
inRight: Array<RuleCompare>;
left: { name: string };
- modified: Array<
- RuleCompare & {
- left: { params: Dict<string>; severity: string };
- right: { params: Dict<string>; severity: string };
- }
- >;
+ modified: Array<RuleCompare & Required<Pick<RuleCompare, 'left' | 'right'>>>;
right: { name: string };
}