mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-15 22:40:21 +00:00
each[Right] is a synonym for forEach[Right]
Doesn't make a significant difference in the number of types though.
This commit is contained in:
Vendored
+2
-8
@@ -16,19 +16,13 @@ declare module "../index" {
|
||||
each: typeof _.forEach;
|
||||
}
|
||||
interface LoDashWrapper<TValue> {
|
||||
each<T>( this: LoDashWrapper<T[] | null | undefined>, iteratee?: ArrayIterator<T, any> ): this;
|
||||
each( this: LoDashWrapper<string | null | undefined>, iteratee?: StringIterator<any> ): this;
|
||||
each<T>( this: LoDashWrapper<List<T> | null | undefined>, iteratee?: ListIterator<T, any> ): this;
|
||||
each<T extends object>( this: LoDashWrapper<T | null | undefined>, iteratee?: ObjectIterator<T, any> ): this;
|
||||
each: LoDashWrapper<TValue>['forEach'];
|
||||
}
|
||||
interface Stat {
|
||||
eachRight: typeof _.forEachRight;
|
||||
}
|
||||
interface LoDashWrapper<TValue> {
|
||||
eachRight<T>( this: LoDashWrapper<T[] | null | undefined>, iteratee?: ArrayIterator<T, any> ): this;
|
||||
eachRight( this: LoDashWrapper<string | null | undefined>, iteratee?: StringIterator<any> ): this;
|
||||
eachRight<T>( this: LoDashWrapper<List<T> | null | undefined>, iteratee?: ListIterator<T, any> ): this;
|
||||
eachRight<T extends object>( this: LoDashWrapper<T | null | undefined>, iteratee?: ObjectIterator<T, any> ): this;
|
||||
eachRight: LoDashWrapper<TValue>['forEachRight'];
|
||||
}
|
||||
interface Stat {
|
||||
every<T>( collection: List<T> | null | undefined, predicate?: ListIterateeCustom<T, boolean> ): boolean;
|
||||
|
||||
Reference in New Issue
Block a user