-
Notifications
You must be signed in to change notification settings - Fork 439
Add method static Response.json(data, init)
#1444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
kodiakhq bot
pushed a commit
to vercel/vercel
that referenced
this issue
Dec 15, 2022
### 🔖 What's in there? Because Typescript's `libdom` does not have [`static Response.json()`](microsoft/TypeScript-DOM-lib-generator#1444) (which modern browsers and edge runtimes are supporting), Typescript users can't use easily use it. This helper fills the gap. ### 🧪 How to test? It's covered with unit tests
feugy
added a commit
to feugy/TypeScript-DOM-lib-generator
that referenced
this issue
Jan 3, 2023
feugy
added a commit
to feugy/TypeScript-DOM-lib-generator
that referenced
this issue
Jan 3, 2023
5 tasks
feugy
added a commit
to feugy/TypeScript-DOM-lib-generator
that referenced
this issue
Jun 2, 2023
feugy
added a commit
to feugy/TypeScript-DOM-lib-generator
that referenced
this issue
Jun 2, 2023
@regseb Now that #1462 has been closed and the |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
A new method has been added:
static Response.json(data, init)
to create a response that contains JSON (not to be confused withResponse.prototype.json()
).Response.json
helper whatwg/fetch#1389Response.json
static method whatwg/fetch#1392Support:
Response.json
static method / D171217Response.json
static method / [fetch] Implement theResponse.json
static method WebKit/WebKit#10593I found that in this project:
TypeScript-DOM-lib-generator/inputfiles/removedTypes.jsonc
Lines 83 to 95 in 513aae2
The text was updated successfully, but these errors were encountered: