pluckResponseData()
function pluckResponseData<Body>(responseContainer): ExtractResponseBodyData<Body>
Helper function to recursively pluck the data property from a response body.
This is useful when an API nests the actual response body within a data property.
Type Parameters
| Type Parameter |
|---|
Body |
Parameters
| Parameter | Type |
|---|---|
responseContainer | ResponseContainer<Body> |
Returns
ExtractResponseBodyData<Body>