aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/component-measures/config
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2018-08-20 17:28:52 +0200
committersonartech <sonartech@sonarsource.com>2018-09-19 10:51:41 +0200
commit0ba8c56c9a7cddf225720f224e66b267f9bbf528 (patch)
tree70bde7296671e7a6fe172b7c1160314eedec9ce8 /server/sonar-web/src/main/js/apps/component-measures/config
parent19107a98d5248a1556ac76b3d9263f1e69fbcefc (diff)
downloadsonarqube-0ba8c56c9a7cddf225720f224e66b267f9bbf528.tar.gz
sonarqube-0ba8c56c9a7cddf225720f224e66b267f9bbf528.zip
SONAR-11165 Migrate rest of component measures page to TS
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component-measures/config')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts2
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/config/domains.ts7
2 files changed, 7 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts b/server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts
index 99c1b0e8e8c..0b432457a90 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts
+++ b/server/sonar-web/src/main/js/apps/component-measures/config/bubbles.ts
@@ -23,7 +23,7 @@ export const bubbles: {
y: string;
size: string;
colors?: string[];
- yDomain?: number[];
+ yDomain?: [number, number];
};
} = {
Reliability: {
diff --git a/server/sonar-web/src/main/js/apps/component-measures/config/domains.ts b/server/sonar-web/src/main/js/apps/component-measures/config/domains.ts
index d7022b680b4..fe45dd98450 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/config/domains.ts
+++ b/server/sonar-web/src/main/js/apps/component-measures/config/domains.ts
@@ -17,7 +17,12 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-export const domains: { [domain: string]: { categories?: string[]; order: string[] } } = {
+
+interface Domains {
+ [domain: string]: { categories?: string[]; order: string[] };
+}
+
+export const domains: Domains = {
Reliability: {
categories: ['new_code_category', 'overall_category'],
order: [