1 | import 'isomorphic-fetch';
|
2 | export interface DefaultApiResponse {
|
3 | [key: string]: any;
|
4 | }
|
5 | /**
|
6 | * Low-level method that makes fetch requests, returning the response formatted as JSON.
|
7 | * It parses errors from API v3 and throws exceptions with those errors
|
8 | */
|
9 | declare const jsonRequest: <TResponseType = DefaultApiResponse>(url: string, options?: RequestInit) => Promise<TResponseType>;
|
10 | export default jsonRequest;
|