UNPKG

x-api-sdk-ts

Version:

TypeScript Library for the X (ex-twitter) API V2

11 lines (10 loc) 448 B
import { AxiosStatic, CreateAxiosDefaults } from 'axios'; import { IHttpAdapter, IHttpFetchResponse } from 'src/interfaces/IHttpAdapter'; export declare class AxiosAdapter implements IHttpAdapter { private axios; private axiosInstance; constructor(axios: AxiosStatic, config?: CreateAxiosDefaults); fetch<T>(url: string, options?: RequestInit): Promise<IHttpFetchResponse<T>>; private parseResponse; private parseHeaders; }