diff --git a/types/lodash/common/collection.d.ts b/types/lodash/common/collection.d.ts index 7c8dfc94c3..658064f74b 100644 --- a/types/lodash/common/collection.d.ts +++ b/types/lodash/common/collection.d.ts @@ -16,19 +16,13 @@ declare module "../index" { each: typeof _.forEach; } interface LoDashWrapper { - each( this: LoDashWrapper, iteratee?: ArrayIterator ): this; - each( this: LoDashWrapper, iteratee?: StringIterator ): this; - each( this: LoDashWrapper | null | undefined>, iteratee?: ListIterator ): this; - each( this: LoDashWrapper, iteratee?: ObjectIterator ): this; + each: LoDashWrapper['forEach']; } interface Stat { eachRight: typeof _.forEachRight; } interface LoDashWrapper { - eachRight( this: LoDashWrapper, iteratee?: ArrayIterator ): this; - eachRight( this: LoDashWrapper, iteratee?: StringIterator ): this; - eachRight( this: LoDashWrapper | null | undefined>, iteratee?: ListIterator ): this; - eachRight( this: LoDashWrapper, iteratee?: ObjectIterator ): this; + eachRight: LoDashWrapper['forEachRight']; } interface Stat { every( collection: List | null | undefined, predicate?: ListIterateeCustom ): boolean;