Skip to content

Commit

Permalink
Make Result<T> an IterableIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
ramikg authored Sep 3, 2024
1 parent ff7ffd8 commit 339b6b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/mapping/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,14 @@ export namespace mapping {
newObjectInstance(): any;
}

interface Result<T = any> extends Iterator<T> {
interface Result<T = any> extends IterableIterator<T> {
wasApplied(): boolean;

first(): T | null;

forEach(callback: (currentValue: T, index: number) => void, thisArg?: any): void;

toArray(): T[];

[Symbol.iterator](): Iterator<T>;
}

type MappingExecutionOptions = {
Expand Down

0 comments on commit 339b6b4

Please sign in to comment.