diff --git a/types/multiplexjs/index.d.ts b/types/multiplexjs/index.d.ts index eddd801609..0cc38c8c06 100644 --- a/types/multiplexjs/index.d.ts +++ b/types/multiplexjs/index.d.ts @@ -448,9 +448,9 @@ declare namespace multiplex { /** * Performs the specified action on each element of the List. - * @param action The action function to perform on each element of the List. + * @param action The action function to perform on each element of an List; the second parameter of the function represents the index of the source element. */ - forEach(action: (item: T) => void): void + forEach(action: (item: T, index: number) => void): void /** @@ -1741,14 +1741,6 @@ declare namespace multiplex { */ firstOrDefault(predicate: (item: T) => boolean, defaultValue: T): T - - /** - * Performs the specified action on each element of an Enumerable. - * @param action The action function to perform on each element of an Enumerable. - */ - forEach(action: (item: T) => void): void - - /** * Performs the specified action on each element of an Enumerable. * @param action The action function to perform on each element of an Enumerable; the second parameter of the function represents the index of the source element.