From 339b6b4e828a7e80dd71a9e9a86f5d279f599d13 Mon Sep 17 00:00:00 2001 From: Rami <72725910+ramikg@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:45:33 +0300 Subject: [PATCH] Make `Result` an `IterableIterator` --- lib/mapping/index.d.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/mapping/index.d.ts b/lib/mapping/index.d.ts index 86e7b238..528d9b15 100644 --- a/lib/mapping/index.d.ts +++ b/lib/mapping/index.d.ts @@ -43,7 +43,7 @@ export namespace mapping { newObjectInstance(): any; } - interface Result extends Iterator { + interface Result extends IterableIterator { wasApplied(): boolean; first(): T | null; @@ -51,8 +51,6 @@ export namespace mapping { forEach(callback: (currentValue: T, index: number) => void, thisArg?: any): void; toArray(): T[]; - - [Symbol.iterator](): Iterator; } type MappingExecutionOptions = {