Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bb8a875

Browse filesBrowse files
authored
Merge pull request microsoft#15050 from YuichiNukiyama/add_headers_iteratableiterator
Fix Headers interface
2 parents a1a2006 + 2713501 commit bb8a875
Copy full SHA for bb8a875

1 file changed

+16Lines changed: 16 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/lib/dom.iterable.d.ts‎

Copy file name to clipboardExpand all lines: src/lib/dom.iterable.d.ts
+16Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,22 @@ interface FormData {
2121
[Symbol.iterator](): IterableIterator<string | File>;
2222
}
2323

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.