From 4a0398e952fc04b3b89b5cfcd3cb56926c75434e Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Fri, 19 Apr 2019 08:18:50 -0700 Subject: [PATCH] each[Right] is a synonym for forEach[Right] Doesn't make a significant difference in the number of types though. --- types/lodash/common/collection.d.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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;