Open
Description
Atm, other formats are not allowed. To be backwards compatible, one option could be to always also return the original response
async function getResponseData(response: Response) {
// ...
const text = await response.clone().text()
//...
}
async function fetchJson(url: string, init: RequestInit): Promise<ApiResponse> {
//...
const result = {
...response,
data,
}
//...
}
Metadata
Metadata
Assignees
Labels
No labels