Skip to content

Commit 541ee23

Browse files
committed
fix: revert to IterableIterator type
StringIterator and MapIterator types are not exposed in TypeScript therefore invalid types
1 parent 3cd0e29 commit 541ee23

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)