• Runs a fetch and parses the JSON body. Any failure, including an error status, is thrown as a RequestError.

    Type Parameters

    • T

    Parameters

    • client: string
    • fn: (() => Promise<Response>)
        • (): Promise<Response>
        • Returns Promise<Response>

    Returns Promise<T>

Generated using TypeDoc