ExtractResponseBodyData<Body>
type ExtractResponseBodyData<Body>: Body extends object ? ExtractResponseBodyData<Data> : Body;
Type-helper 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 |