Skip to content

Commit 8b24189

Browse files
Fix Headers interface
1 parent dce7fca commit 8b24189

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/lib/dom.iterable.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ interface FormData {
2121
[Symbol.iterator](): IterableIterator<string | File>;
2222
}
2323

24+
interface Headers {
25+
/**
26+
* Returns an iterator allowing to go through all key/value pairs contained in this object.
27+
*/
28+
entries(): IterableIterator<[string, string]>;
29+
/**
30+
* Returns an iterator allowing to go through all keys f the key/value pairs contained in this object.
31+
*/
32+
keys(): IterableIterator<string>;
33+
/**
34+
* Returns an iterator allowing to go through all values of the key/value pairs contained in this object.
35+
*/
36+
values(): IterableIterator<string>;
37+
}
38+
2439
interface NodeList {
2540
/**
2641
* Returns an array of key, value pairs for every entry in the list

0 commit comments

Comments
 (0)