-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Description
I feel like this might be missing a type. Per the MDN docs on URLSearchParams you should be able to initialize it with a FormData. I believe that we might want to add Iterable<[string, string]>
or even just FormData
to the allowed init types.
The code actually works but the types are not allowed. In your console, the following code works.
let formData = new FormData()
let urlSearchParams = new UrlSearchParams(formData)
Lines 14942 to 14946 in 20c93d3
declare var URLSearchParams: { | |
prototype: URLSearchParams; | |
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams; | |
toString(): string; | |
}; |
MartinJohns
Metadata
Metadata
Assignees
Labels
No labels