Skip to content

Commit ee2f13d

Browse files
committed
FormDataLike iterator type: Generator -> IterableIterator. Fixes #19
1 parent 815781f commit ee2f13d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FormDataLike.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ export interface FormDataLike {
3535
* Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through the `FormData` key/value pairs.
3636
* The key of each pair is a string; the value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
3737
*/
38-
entries(): Generator<[string, FormDataEntryValue]>
38+
entries(): IterableIterator<[string, FormDataEntryValue]>
3939

4040
/**
4141
* An alias for FormDataLike#entries()
4242
*/
43-
[Symbol.iterator](): Generator<[string, FormDataEntryValue]>
43+
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>
4444

4545
readonly [Symbol.toStringTag]: string
4646
}

0 commit comments

Comments
 (0)