File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import CommonError from "./CommonError";
8
8
import Collapsible from "./Collapsable" ;
9
9
import Loading from "./Loading" ;
10
10
import { ComparatorDiff } from "./ComparatorDiff" ;
11
- import { ScoreElement } from "../types" ;
11
+ import { ScoreElement , ConsolidatedScoreElement } from "../types" ;
12
12
13
13
import "../styles/ProjectDetails.css" ;
14
14
@@ -141,7 +141,7 @@ function ProjectComparator() {
141
141
</ p >
142
142
< hr />
143
143
{ Array . isArray ( state ) &&
144
- state . map ( ( element : any ) => (
144
+ state . map ( ( element :ConsolidatedScoreElement ) => (
145
145
< >
146
146
< div key = { element . name } className = "card__wrapper" >
147
147
< div data-testid = { element . name } className = "heading__wrapper" >
Original file line number Diff line number Diff line change @@ -8,3 +8,16 @@ export interface ScoreElement {
8
8
url : string ;
9
9
} ;
10
10
}
11
+
12
+ export interface ConsolidatedScoreElement {
13
+ areEqual : boolean ,
14
+ name : string ,
15
+ details : string [ ] ,
16
+ reason : string ,
17
+ score : number ,
18
+ short : string ,
19
+ url : string ,
20
+ prevDetails : string [ ] ,
21
+ prevReason : string ,
22
+ prevScore : number ,
23
+ }
You can’t perform that action at this time.
0 commit comments