From 41c98779d38bda9fdfdca182a5f20c73fcff9a84 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 5 Dec 2018 17:32:18 +0100 Subject: create global type definitions (#1017) --- server/sonar-web/src/main/js/api/projectActivity.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server/sonar-web/src/main/js/api/projectActivity.ts') diff --git a/server/sonar-web/src/main/js/api/projectActivity.ts b/server/sonar-web/src/main/js/api/projectActivity.ts index d16733b5ebb..8d9af2debc1 100644 --- a/server/sonar-web/src/main/js/api/projectActivity.ts +++ b/server/sonar-web/src/main/js/api/projectActivity.ts @@ -19,11 +19,10 @@ */ import { getJSON, postJSON, post, RequestData } from '../helpers/request'; import throwGlobalError from '../app/utils/throwGlobalError'; -import { Paging, BranchParameters, Analysis } from '../app/types'; export function getProjectActivity( - data: { project: string; category?: string; p?: number; ps?: number } & BranchParameters -): Promise<{ analyses: Analysis[]; paging: Paging }> { + data: { project: string; category?: string; p?: number; ps?: number } & T.BranchParameters +): Promise<{ analyses: T.Analysis[]; paging: T.Paging }> { return getJSON('/api/project_analyses/search', data).catch(throwGlobalError); } -- cgit v1.2.3