diff options
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/request.ts')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/request.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/helpers/request.ts b/server/sonar-web/src/main/js/helpers/request.ts index b225df5d4fc..4bac03dadd6 100644 --- a/server/sonar-web/src/main/js/helpers/request.ts +++ b/server/sonar-web/src/main/js/helpers/request.ts @@ -44,7 +44,11 @@ export function getCSRFToken(): { [x: string]: string } { return value ? { [getCSRFTokenName()]: value } : {}; } -export function omitNil(obj: { [x: string]: any }): { [x: string]: any } { +export interface RequestData { + [x: string]: any; +} + +export function omitNil(obj: RequestData): RequestData { return omitBy(obj, isNil); } @@ -66,10 +70,6 @@ const DEFAULT_HEADERS = { Accept: 'application/json' }; -export interface RequestData { - [x: string]: any; -} - /** * Request */ |