UNPKG

495 BTypeScriptView Raw
1import { AxiosRequestConfig } from "axios";
2export declare type APIQueryParams = Record<string, any>;
3export declare type APIUrlParams = Record<string, any>;
4export declare type APIRequestConfig = AxiosRequestConfig;
5export declare type APIResponse = any;
6export declare type Endpoint<T = APIQueryParams, T2 = APIUrlParams, T3 = APIResponse> = (queryParams?: T, urlParams?: T2, requestConfig?: APIRequestConfig) => Promise<T3>;
7export interface Endpoints {
8 [x: string]: Endpoint;
9}