@itwin/clash-detection-client
Version:
Clash Detection client for the iTwin platform
14 lines • 884 B
TypeScript
import type { HttpRequestParams, HttpRequestWithBodyParams, ParseErrorFunc, RestClient } from "./RestClient";
/** Default implementation for {@link RestClient} interface that uses `axios` library for sending the requests. */
export declare class AxiosRestClient implements RestClient {
private _parseErrorFunc;
constructor(parseErrorFunc?: ParseErrorFunc);
sendGetRequest<TResponse>(params: HttpRequestParams): Promise<TResponse>;
sendPostRequest<TResponse>(params: HttpRequestWithBodyParams): Promise<TResponse>;
sendPutRequest<TResponse>(params: HttpRequestWithBodyParams): Promise<TResponse>;
sendPatchRequest<TResponse>(params: HttpRequestWithBodyParams): Promise<TResponse>;
sendDeleteRequest<TResponse>(params: HttpRequestParams): Promise<TResponse>;
private handleError;
private handleSuccess;
}
//# sourceMappingURL=AxiosRestClient.d.ts.map