diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2023-01-02 17:56:51 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-01-11 20:02:58 +0000 |
commit | d3d504d510d2460e5de3a951fcf15b66135dcb53 (patch) | |
tree | cc7a86446b73f944cecbe3f1f16e44f7432a5963 /server/sonar-web/src/main/js/api | |
parent | 406c4700025ff907d4e212f8de5b3c0c53f71fa7 (diff) | |
download | sonarqube-d3d504d510d2460e5de3a951fcf15b66135dcb53.tar.gz sonarqube-d3d504d510d2460e5de3a951fcf15b66135dcb53.zip |
[NO-JIRA] Fix typing issue in extensions
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r-- | server/sonar-web/src/main/js/api/navigation.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/api/navigation.ts b/server/sonar-web/src/main/js/api/navigation.ts index 8e073b84355..a6a5f87698b 100644 --- a/server/sonar-web/src/main/js/api/navigation.ts +++ b/server/sonar-web/src/main/js/api/navigation.ts @@ -21,13 +21,11 @@ import { throwGlobalError } from '../helpers/error'; import { getJSON } from '../helpers/request'; import { AppState } from '../types/appstate'; import { BranchParameters } from '../types/branch-like'; -import { Component, Extension } from '../types/types'; - -type NavComponent = Omit<Component, 'alm' | 'qualifier' | 'leakPeriodDate' | 'path' | 'tags'>; +import { Extension, NavigationComponent } from '../types/types'; export function getComponentNavigation( data: { component: string } & BranchParameters -): Promise<NavComponent> { +): Promise<NavigationComponent> { return getJSON('/api/navigation/component', data).catch(throwGlobalError); } |