dev3-sdk
Version:
SDK for interacting with the 0xDev3 platform.
17 lines (16 loc) • 647 B
TypeScript
import { AxiosInstance } from 'axios';
declare module 'axios' {
interface AxiosResponse<T> extends Promise<T> {
}
}
export declare abstract class HttpClient {
protected readonly apiKey: string;
protected readonly projectId: string;
protected readonly instance: AxiosInstance;
protected readonly protectedInstance: AxiosInstance;
protected readonly identityServiceInstance: AxiosInstance;
constructor(baseURL: string, identityBaseURL: string, apiKey: string, projectId: string);
private _initializeResponseInterceptor;
private _handleResponse;
protected _handleError: (error: Error) => Promise<never>;
}