Skip to content

[feature request] stricter fetch().json() #24

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

Closed
skyqrose opened this issue Mar 4, 2023 · 0 comments · Fixed by #26
Closed

[feature request] stricter fetch().json() #24

skyqrose opened this issue Mar 4, 2023 · 0 comments · Fixed by #26
Labels
enhancement New feature or request

Comments

@skyqrose
Copy link

skyqrose commented Mar 4, 2023

Having a stricter JSON.parse() is fantastic, and is most of the reason I tried this library. But most of my json parsing is done through fetch().json(), which still returns Promise<any>. It'd be nice if it could also return JSONData.

@uhyo uhyo added the enhancement New feature or request label Mar 5, 2023
aaditmshah added a commit to aaditmshah/better-typescript-lib that referenced this issue Apr 4, 2023
aaditmshah added a commit to aaditmshah/better-typescript-lib that referenced this issue Apr 4, 2023
aaditmshah added a commit to aaditmshah/better-typescript-lib that referenced this issue Apr 4, 2023
@uhyo uhyo closed this as completed in #26 Apr 5, 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

Successfully merging a pull request may close this issue.

2 participants