diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2019-03-25 11:29:23 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-03-29 09:44:57 +0100 |
commit | 10cb25f0f8634d392a029a54f23ebb5e48b96e36 (patch) | |
tree | 3a1a23663f240a62b4a763ac7278c2586a9b1131 /server/sonar-web/src/main/js/helpers/issues.ts | |
parent | 2beaf73c2d10dcaaf3949889af53579e7d5aba13 (diff) | |
download | sonarqube-10cb25f0f8634d392a029a54f23ebb5e48b96e36.tar.gz sonarqube-10cb25f0f8634d392a029a54f23ebb5e48b96e36.zip |
Introduce new T.Dict<T> type constructor
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/issues.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/issues.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/helpers/issues.ts b/server/sonar-web/src/main/js/helpers/issues.ts index 221480a4302..3a2fe6696a2 100644 --- a/server/sonar-web/src/main/js/helpers/issues.ts +++ b/server/sonar-web/src/main/js/helpers/issues.ts @@ -64,12 +64,12 @@ export function sortBySeverity(issues: T.Issue[]): T.Issue[] { } function injectRelational( - issue: { [x: string]: any }, + issue: T.Dict<any>, source: any[] | undefined, baseField: string, lookupField: string ) { - const newFields: { [x: string]: any } = {}; + const newFields: T.Dict<any> = {}; const baseValue = issue[baseField]; if (baseValue !== undefined && source !== undefined) { const lookupValue = source.find(candidate => candidate[lookupField] === baseValue); |