Skip to content

Commit beb5041

Browse files
committed
fix: type definition for headers and compatibility with node 24 types
1 parent 99f835b commit beb5041

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/abstractions/src/headers.ts

Lines changed: 2 additions & 2 deletions
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(): IterableIterator<string> {
261+
public keys(): MapIterator<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(): IterableIterator<[string, Set<string>]> {
269+
public entries(): MapIterator<[string, Set<string>]> {
270270
return Object.entries(this.headers)[Symbol.iterator]();
271271
}
272272
}

0 commit comments

Comments
 (0)