UNPKG

galeforce-tmp-sea

Version:

A customizable, promise-based, and command-oriented TypeScript library for the Riot Games API.

36 lines 1.04 kB
import { AxiosRequestConfig, AxiosResponse } from 'axios'; export default class Request { readonly targetURL: string; protected body: object; protected axiosOptions: AxiosRequestConfig; constructor(targetURL: string, body: object, axiosOptions?: AxiosRequestConfig); /** * @public * @async * * @return Return JSON data as a promise (due to delayed request completion). */ get(): Promise<AxiosResponse<unknown>>; /** * @public * @async * * @return Return JSON data as a promise (due to delayed request completion). */ post(): Promise<AxiosResponse<unknown>>; /** * @public * @async * * @return Return JSON data as a promise (due to delayed request completion). */ put(): Promise<AxiosResponse<unknown>>; /** * @public * @async * * @return Return JSON data as a promise (due to delayed request completion). */ delete(): Promise<AxiosResponse<unknown>>; } //# sourceMappingURL=index.d.ts.map