Creates a function that is a request function with a baked requestType. This is also nice because you get TypeScript type support using this function.

  • Type Parameters

    • TParam extends unknown[]
    • TReturn

    Parameters

    • requestType: `${string}:${string}`

      RequestType for request function

    Returns ((...args: TParam) => Promise<TReturn>)

    Function to call with arguments of request that performs the request and resolves with the response contents