Skip to content

Commit

Permalink
fix(node-fetch): Change incorrect [string] to string (#54674)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjhsf committed Jul 22, 2021
1 parent e8c8954 commit a217b44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/node-fetch/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class Headers implements Iterable<[string, string]> {
// Iterable methods
entries(): IterableIterator<[string, string]>;
keys(): IterableIterator<string>;
values(): IterableIterator<[string]>;
values(): IterableIterator<string>;
[Symbol.iterator](): Iterator<[string, string]>;
}

Expand Down
2 changes: 1 addition & 1 deletion types/node-fetch/node-fetch-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ function test_headers() {
[...headers]; // $ExpectType [string, string][]
[...headers.entries()]; // $ExpectType [string, string][]
[...headers.keys()]; // $ExpectType string[]
[...headers.values()]; // $ExpectType [string][]
[...headers.values()]; // $ExpectType string[]
}

function test_isRedirect() {
Expand Down

0 comments on commit a217b44

Please sign in to comment.