Skip to content

Commit

Permalink
FormDataLike iterator type: Generator -> IterableIterator. Fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
octet-stream committed Oct 23, 2023
1 parent 815781f commit ee2f13d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FormDataLike.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export interface FormDataLike {
* Returns an [`iterator`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) allowing to go through the `FormData` key/value pairs.
* The key of each pair is a string; the value is a [`FormDataValue`](https://developer.mozilla.org/en-US/docs/Web/API/FormDataEntryValue).
*/
entries(): Generator<[string, FormDataEntryValue]>
entries(): IterableIterator<[string, FormDataEntryValue]>

/**
* An alias for FormDataLike#entries()
*/
[Symbol.iterator](): Generator<[string, FormDataEntryValue]>
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>

readonly [Symbol.toStringTag]: string
}

0 comments on commit ee2f13d

Please sign in to comment.