Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 52267c0

Browse files
gzlkylinraysonguo
and
raysonguo
authored
adjust forEach param order (#284)
Co-authored-by: raysonguo <[email protected]>
1 parent 6e55069 commit 52267c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

overrides/http.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ declare class FormData {
1515
forEach<This = unknown>(
1616
callback: (
1717
this: This,
18-
key: string,
1918
value: File | string,
19+
key: string,
2020
parent: FormData
2121
) => void,
2222
thisArg?: This
@@ -28,7 +28,7 @@ declare class Headers {
2828
[Symbol.iterator](): IterableIterator<[key: string, value: string]>;
2929

3030
forEach<This = unknown>(
31-
callback: (this: This, key: string, value: string, parent: Headers) => void,
31+
callback: (this: This, value: string, key: string, parent: Headers) => void,
3232
thisArg?: This
3333
): void;
3434
}
@@ -47,8 +47,8 @@ declare class URLSearchParams {
4747
forEach<This = unknown>(
4848
callback: (
4949
this: This,
50-
key: string,
5150
value: string,
51+
key: string,
5252
parent: URLSearchParams
5353
) => void,
5454
thisArg?: This

0 commit comments

Comments
 (0)