File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { CacheMap } from '../../util/cachemap';
6
6
import { Time } from '../../util/time' ;
7
7
import { getFileNameFromPaths } from '../../views/pullrequest/diffViewHelper' ;
8
8
import { clientForSite } from '../bbUtils' ;
9
- import { IHTTPClient } from '../httpClient' ;
9
+ import { HTTPClient } from '../httpClient' ;
10
10
import {
11
11
ApprovalStatus ,
12
12
BitbucketSite ,
@@ -32,7 +32,7 @@ export class ServerPullRequestApi implements PullRequestApi {
32
32
private defaultReviewersCache : CacheMap = new CacheMap ( ) ;
33
33
private fileContentCache : CacheMap = new CacheMap ( ) ;
34
34
35
- constructor ( private client : IHTTPClient ) { }
35
+ constructor ( private client : HTTPClient ) { }
36
36
37
37
async getList ( workspaceRepo : WorkspaceRepo , queryParams ?: any ) : Promise < PaginatedPullRequests > {
38
38
const site = workspaceRepo . mainSiteRemote . site ;
Original file line number Diff line number Diff line change @@ -11,18 +11,6 @@ export interface RequestRange {
11
11
end : number ;
12
12
}
13
13
14
- export interface IHTTPClient {
15
- getUrl ( url : string , cancelToken ?: CancelToken ) : Promise < any > ;
16
- get ( urlSlug : string , queryParams ?: any , cancelToken ?: CancelToken ) : Promise < any > ;
17
- getRaw ( urlSlug : string , queryParams ?: any ) : Promise < any > ;
18
- getArrayBuffer ( urlSlug : string , queryParams ?: any ) : Promise < any > ;
19
- getOctetStream ( urlSlug : string , range ?: RequestRange , queryParams ?: any ) : Promise < any > ;
20
- post ( urlSlug : string , body : any , queryParams ?: any ) : Promise < any > ;
21
- put ( urlSlug : string , body : any , queryParams ?: any ) : Promise < any > ;
22
- delete ( urlSlug : string , body : any , queryParams ?: any ) : Promise < any > ;
23
- generateUrl ( urlSlug : string , queryParams ?: any ) : string ;
24
- }
25
-
26
14
export class HTTPClient {
27
15
private transport : AxiosInstance ;
28
16
You can’t perform that action at this time.
0 commit comments