azure-devops-node-api
Version:
Node client for Azure DevOps and TFS REST APIs
17 lines (16 loc) • 796 B
TypeScript
/// <reference types="node" />
import * as rm from 'typed-rest-client/RestClient';
import * as hm from 'typed-rest-client/HttpClient';
import { IHeaders, IHttpClientResponse } from 'typed-rest-client/Interfaces';
/**
* AdoHttpClient that extracts rate limit headers and attaches them to the response object
*/
export declare class AdoHttpClient extends hm.HttpClient {
request(verb: string, requestUrl: string, data: string | NodeJS.ReadableStream, headers: IHeaders): Promise<IHttpClientResponse>;
}
/**
* AdoRestClient that extracts rate limit headers and attaches them to the response/result objects
*/
export declare class AdoRestClient extends rm.RestClient {
protected processResponse<T>(res: hm.HttpClientResponse, options: rm.IRequestOptions): Promise<rm.IRestResponse<T>>;
}