UNPKG

hungry-fetch

Version:
20 lines (19 loc) 495 B
/** * Container for storing call-data, providing some convenience functions. */ export default class FetchCall { url: string; additionalArgs: any; request: RequestInit; constructor(url: string, request: RequestInit | undefined, additionalArgs: any); /** * Parses the request body from json. * @returns The parsed object. */ json(): any; /** * Gets the body of the request. * @returns The body. */ body(): any; }