Closed
Description
Hi,
A new method has been added: static Response.json(data, init)
to create a response that contains JSON (not to be confused with Response.prototype.json()
).
declare var Response: {
// ...
json(data: any, init?: ResponseInit): Response;
};
Support:
- ✔️ Chromium 105
- ❌ Firefox: Implement
Response.json
static method / D171217 - ❌ Safari: Implement
Response.json
static method / [fetch] Implement theResponse.json
static method WebKit/WebKit#10593 - ✔️ Node via Undici v5.3.0
- node-fetch v3.3.0
- ✔️ Deno 1.22
- ✔️ Bun 0.0.74
I found that in this project:
TypeScript-DOM-lib-generator/inputfiles/removedTypes.jsonc
Lines 83 to 95 in 513aae2
Metadata
Metadata
Assignees
Labels
No labels