UNPKG

haravan-client

Version:
27 lines (26 loc) 588 B
import { Method } from 'axios'; export declare function makeRequestConfig(param: { url?: string; path?: string; method: Method; accessToken: string; data?: any; rootField?: string; delay?: number; query?: string; }): { url: string; method: Method; headers: any; data: any; rootField: string; delay: number; }; export declare function sendRequest({ url, method, headers, data, rootField, delay }: { url?: string; method: Method; headers: any; data?: any; rootField?: string; delay?: number; }): Promise<any>;