Closed
Description
When using this library in conjunction with something like redux-saga, you would usually use the call
method provided by redux-saga. This method by default returns any, so I usually type it to something like HttpResponse<ResponseData, x>
.
However due to a recent change, this is no longer possible. If this is intentional, it would be good to know how to handle this (common) scenario.
I put a comment on the line change that breaks this:
This makes it hard to type responses in code that uses the HttpClient.
(For example when using this with the call
method of redux-saga
where you need to type the expected response yourself, since call
uses any
.
Originally posted by @Styn in #149 (comment)