aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/languages.ts
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-09-15 15:00:45 +0200
committerTeryk Bellahsene <teryk@users.noreply.github.com>2017-09-20 09:15:23 +0200
commit15705813665581d67d67bff133d31d235dd16535 (patch)
treebbe2d5d6be6eeffdc667bab66e584b0f24c851e3 /server/sonar-web/src/main/js/api/languages.ts
parent4c2dafad1f82d5a79a061335908ca0e7ea80b6ee (diff)
downloadsonarqube-15705813665581d67d67bff133d31d235dd16535.tar.gz
sonarqube-15705813665581d67d67bff133d31d235dd16535.zip
SONAR-9812 display activity page for portfolios (#2510)
Diffstat (limited to 'server/sonar-web/src/main/js/api/languages.ts')
-rw-r--r--server/sonar-web/src/main/js/api/languages.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/languages.ts b/server/sonar-web/src/main/js/api/languages.ts
index ee5bd130a5e..cb4722540ae 100644
--- a/server/sonar-web/src/main/js/api/languages.ts
+++ b/server/sonar-web/src/main/js/api/languages.ts
@@ -19,6 +19,11 @@
*/
import { getJSON } from '../helpers/request';
-export function getLanguages(): Promise<any> {
+export interface Language {
+ key: string;
+ name: string;
+}
+
+export function getLanguages(): Promise<Language[]> {
return getJSON('/api/languages/list').then(r => r.languages);
}