From ee2f13dc2674d7bb381048f6b71b9f8e2eb55a45 Mon Sep 17 00:00:00 2001 From: Nick K Date: Tue, 24 Oct 2023 01:10:12 +0300 Subject: [PATCH] FormDataLike iterator type: Generator -> IterableIterator. Fixes #19 --- src/FormDataLike.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FormDataLike.ts b/src/FormDataLike.ts index 2401e91..efbd7c3 100644 --- a/src/FormDataLike.ts +++ b/src/FormDataLike.ts @@ -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 }