mav-api-ts
Version:
Unofficial, experimental MÁV API library based on the requests by jegy.mav.hu
5 lines (4 loc) • 427 B
TypeScript
import { type AxiosRequestConfig, type AxiosResponse } from 'axios';
import { type QueryLanguage } from '../types/common.type';
import { type ApiEndpoint, type ApiSection } from '../types/requestConstants.type';
export declare function makeRequest<T, B = unknown>(section: ApiSection, endpoint: ApiEndpoint, body?: B | undefined, language?: QueryLanguage, axiosConfig?: AxiosRequestConfig<unknown>): Promise<AxiosResponse<T>>;