-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TS does not know about the existence of the window.fetch? #8966
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
Fetch is only just coming to Edge 14. The tool located at Microsoft/TSJS-lib-generator is what deals with generating the library off of Edge with certain modifications and overrides. That then is what is checked into TypeScript. |
PRs welcomed. You can find more information about contributing lib.d.ts fixes at https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes. |
if you do not mind, we would like to keep this issue open until it is fixed. |
@basarat Correct there is a fetch.d.ts that works quite well. One thing to consider is that
Are there different versions of |
Any updates on this? Thanks |
It is open as accepting PR with a Milestone of the community (noted by the labels and milestone on the right of the issue), which is an indication that the core TypeScript do not currently have the resources to address this as a priority, but anyone in the community is more than welcome to contribute it. |
Duplicate of #4948 |
Any updates on this? I am unable to find a working fetch dts file, am i missing something? |
@mhgamework In the latest TypeScript, fetch is available with |
window.fetch(...)
The text was updated successfully, but these errors were encountered: