aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/issues.ts
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2019-12-11 18:36:30 +0100
committerSonarTech <sonartech@sonarsource.com>2020-01-13 20:46:29 +0100
commit075baf29c5250bcb52634cd4f4ab678c68581808 (patch)
tree6228918275cc0a1570f46aadfbe487e9c18288f3 /server/sonar-web/src/main/js/helpers/issues.ts
parent71c0f8cab2dfd8fcc6a1918e1681b821e446197e (diff)
downloadsonarqube-075baf29c5250bcb52634cd4f4ab678c68581808.tar.gz
sonarqube-075baf29c5250bcb52634cd4f4ab678c68581808.zip
SONAR-12718 Hotspot Code Snippet
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/issues.ts')
-rw-r--r--server/sonar-web/src/main/js/helpers/issues.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/issues.ts b/server/sonar-web/src/main/js/helpers/issues.ts
index 4f2330f7888..dc84f8d64fb 100644
--- a/server/sonar-web/src/main/js/helpers/issues.ts
+++ b/server/sonar-web/src/main/js/helpers/issues.ts
@@ -55,7 +55,7 @@ export interface RawIssue extends IssueBase {
textRange?: T.TextRange;
}
-export function sortByType(issues: T.Issue[]): T.Issue[] {
+export function sortByType<T extends Pick<T.Issue, 'type'>>(issues: T[]): T[] {
return sortBy(issues, issue => ISSUE_TYPES.indexOf(issue.type));
}