-
Notifications
You must be signed in to change notification settings - Fork 441
URLSearchParams should accept an iterable #741
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Currently the blocker is #222, because
|
The current definition of entries(): IterableIterator<[string, string]>;
keys(): IterableIterator<string>;
values(): IterableIterator<string>; I suppose those are probably blocked on the same issue. |
@Ryan1729 Those are available when you set |
5 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
This works in the browser, but the TS definition doesn't allow it:
The type is currently:
The specification says that it should accept a "sequence", not specifically an array https://url.spec.whatwg.org/#concept-urlsearchparams-new
The text was updated successfully, but these errors were encountered: