seamless-cloud
Version:
JavaScript client for Seamless.cloud (web and node)
7 lines (6 loc) • 326 B
TypeScript
declare type HttpRequestMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' | 'OPTIONS';
/**
* Generic fetch JSON method that handles errors (non-sucessful response codes)
*/
export declare function fetchJSON(fetchFn: any, method: HttpRequestMethod, url: string, body: object, fetchOptions?: any): Promise<any>;
export {};