eventbrite
Version:
The official JavaScript SDK for the Eventbrite v3 API
11 lines (10 loc) • 415 B
TypeScript
import 'isomorphic-fetch';
export interface DefaultApiResponse {
[key: string]: any;
}
/**
* Low-level method that makes fetch requests, returning the response formatted as JSON.
* It parses errors from API v3 and throws exceptions with those errors
*/
declare const jsonRequest: <TResponseType = DefaultApiResponse>(url: string, options?: RequestInit) => Promise<TResponseType>;
export default jsonRequest;