Merge pull request #15284 from HerringtonDarkholme/lib

fix #15243: add URLSearchParams to iterable
This commit is contained in:
Mohamed Hegazy 2017-04-21 09:23:51 -07:00 committed by GitHub
commit 0e08e6ef5b

View File

@ -70,3 +70,22 @@ interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
}
interface URLSearchParams {
/**
* Returns an array of key, value pairs for every entry in the search params
*/
entries(): IterableIterator<[string, string]>;
/**
* Returns a list of keys in the search params
*/
keys(): IterableIterator<string>;
/**
* Returns a list of values in the search params
*/
values(): IterableIterator<string>;
/**
* iterate over key/value pairs
*/
[Symbol.iterator](): IterableIterator<[string, string]>;
}