diff options
Diffstat (limited to 'server/sonar-web/src/main/js/api/measures.ts')
-rw-r--r-- | server/sonar-web/src/main/js/api/measures.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/measures.ts b/server/sonar-web/src/main/js/api/measures.ts index 482af37a61b..4930375e554 100644 --- a/server/sonar-web/src/main/js/api/measures.ts +++ b/server/sonar-web/src/main/js/api/measures.ts @@ -25,12 +25,13 @@ import { MeasuresAndMetaWithPeriod, MeasuresForProjects } from '../types/measures'; +import { Measure } from '../types/types'; const COMPONENT_URL = '/api/measures/component'; export function getMeasures( data: { component: string; metricKeys: string } & BranchParameters -): Promise<T.Measure[]> { +): Promise<Measure[]> { return getJSON(COMPONENT_URL, data).then(r => r.component.measures, throwGlobalError); } |