Skip to content

Commit

Permalink
Merge pull request #15050 from YuichiNukiyama/add_headers_iteratablei…
Browse files Browse the repository at this point in the history
…terator

Fix Headers interface
  • Loading branch information
mhegazy committed Apr 24, 2017
2 parents a1a2006 + 2713501 commit bb8a875
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/lib/dom.iterable.d.ts
Expand Up @@ -21,6 +21,22 @@ interface FormData {
[Symbol.iterator](): IterableIterator<string | File>;
}

interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/**
* Returns an iterator allowing to go through all key/value pairs contained in this object.
*/
entries(): IterableIterator<[string, string]>;
/**
* Returns an iterator allowing to go through all keys f the key/value pairs contained in this object.
*/
keys(): IterableIterator<string>;
/**
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
*/
values(): IterableIterator<string>;
}

interface NodeList {
/**
* Returns an array of key, value pairs for every entry in the list
Expand Down

0 comments on commit bb8a875

Please sign in to comment.