-
Notifications
You must be signed in to change notification settings - Fork 441
Add types to fetch methods #1957
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
You are talking about https://developer.mozilla.org/en-US/docs/Web/API/Request/method ?
yes they are.
|
But at least the standards will be available. But I understand your point. |
We would have to merge all "well known" standards at this point. And if a customer wants to extend this list he had to circumvent typescript a bit. But we had an issue here in this repo for adding some well known string values for intellisense while keeping |
This is what i mean for intellisense |
ref #1467 (comment) |
Currently, the
fetch
method is a string, but not all values are valid. We should specify the allowed HTTP methods.Reference: MDN - HTTP Methods.
I can create a PR for this, but we need a way to handle case insensitivity when checking the method.
The text was updated successfully, but these errors were encountered: