UNPKG

763 BTypeScriptView Raw
1import vsom = require('./VsoClient');
2import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
3import * as rm from 'typed-rest-client/RestClient';
4import * as hm from 'typed-rest-client/HttpClient';
5export declare class ClientApiBase {
6 baseUrl: string;
7 userAgent: string;
8 http: hm.HttpClient;
9 rest: rm.RestClient;
10 vsoClient: vsom.VsoClient;
11 constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], userAgent?: string, options?: VsoBaseInterfaces.IRequestOptions);
12 createAcceptHeader(type: string, apiVersion?: string): string;
13 createRequestOptions(type: string, apiVersion?: string): rm.IRequestOptions;
14 formatResponse(data: any, responseTypeMetadata: any, isCollection: boolean): any;
15}