aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/measures.ts
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/api/measures.ts
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/api/measures.ts')
-rw-r--r--server/sonar-web/src/main/js/api/measures.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/api/measures.ts b/server/sonar-web/src/main/js/api/measures.ts
index 1102c39870c..378c5079242 100644
--- a/server/sonar-web/src/main/js/api/measures.ts
+++ b/server/sonar-web/src/main/js/api/measures.ts
@@ -20,14 +20,14 @@
import { getJSON, RequestData, postJSON, post } from '../helpers/request';
import throwGlobalError from '../app/utils/throwGlobalError';
import {
- Metric,
CustomMeasure,
- Paging,
BranchParameters,
Measure,
- MeasurePeriod
+ Metric,
+ Paging,
+ Period,
+ PeriodMeasure
} from '../app/types';
-import { Period } from '../helpers/periods';
export function getMeasures(
data: { componentKey: string; metricKeys: string } & BranchParameters
@@ -55,7 +55,7 @@ export function getMeasuresAndMeta(
interface MeasuresForProjects {
component: string;
metric: string;
- periods?: MeasurePeriod[];
+ periods?: PeriodMeasure[];
value?: string;
}