fix #15243: add URLSearchParams to iterable

This commit is contained in:
Herrington Darkholme 2017-04-20 10:19:56 +08:00
parent b267492127
commit 13afdb81e8

View File

@ -70,3 +70,10 @@ interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
}
interface URLSearchParams {
/**
* iterate over key/value pairs
*/
[Symbol.iterator](): IterableIterator<[string, string]>;
}