Skip to content

Commit 554acbc

Browse files
authored
Merge pull request #1661 from microsoft/fix/revert-type-changes
fix: revert to IterableIterator type
2 parents 7047014 + 541ee23 commit 554acbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/abstractions/src/headers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,15 @@ export class Headers extends Map<string, Set<string>> {
258258
* get keys of the headers collection
259259
* @returns an iterator of keys
260260
*/
261-
public keys(): StringIterator<string> {
261+
public keys(): IterableIterator<string> {
262262
return Object.keys(this.headers)[Symbol.iterator]();
263263
}
264264

265265
/**
266266
* get entries
267267
* @returns an iterator of entries
268268
*/
269-
public entries(): MapIterator<[string, Set<string>]> {
269+
public entries(): IterableIterator<[string, Set<string>]> {
270270
return Object.entries(this.headers)[Symbol.iterator]();
271271
}
272272
}

0 commit comments

Comments
 (0)