Skip to content
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

Response.json static method #12

Closed
cyco130 opened this issue Jun 23, 2022 · 2 comments
Closed

Response.json static method #12

cyco130 opened this issue Jun 23, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@cyco130
Copy link
Member

cyco130 commented Jun 23, 2022

It's a very convenient and widely implemented extension. It should be possible to polyfill in just a few lines of code.

@cyco130 cyco130 added the enhancement New feature or request label Jun 23, 2022
@cyco130
Copy link
Member Author

cyco130 commented Jun 24, 2022

Now that we have a @hattip/polyfills package, the implementation is trivial but TypeScript won't play nice.

@cyco130
Copy link
Member Author

cyco130 commented May 20, 2023

This is now supported almost everywhere. I now consider it a TypeScript issue. We can always use json from @hattip/response anyway. Closing.

@cyco130 cyco130 closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant