UNPKG

@procore/core-http

Version:

A HTTP Client

8 lines (6 loc) 312 B
interface RequestParams extends RequestInit { baseUrl?: string; } declare function request(url: string, { baseUrl, ...options }?: RequestParams): Promise<Response>; declare function requestJSON<T>(url: string, requestParams?: RequestParams): Promise<T>; export { type RequestParams, request, requestJSON };