Skip to content

Commit 8959e79

Browse files
authored
fix: correct type definition of Headers.prototype.values() to indicate it returns an IterableIterator<string> (#740)
1 parent bc5e5b1 commit 8959e79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/globals.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,7 +1532,7 @@ interface Headers {
15321532
// Iterable methods
15331533
entries(): IterableIterator<[string, string]>;
15341534
keys(): IterableIterator<string>;
1535-
values(): IterableIterator<[string]>;
1535+
values(): IterableIterator<string>;
15361536
[Symbol.iterator](): Iterator<[string, string]>;
15371537
}
15381538

@@ -1824,4 +1824,4 @@ type KeyFormat =
18241824
| "raw"
18251825
// | "spki";
18261826
type KeyType = "private" | "public" | "secret";
1827-
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
1827+
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";

0 commit comments

Comments
 (0)