mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 11:50:15 +08:00
lodash: signatures of _.forEach and _.forEachRight have been changed
This commit is contained in:
Vendored
+80
-44
@@ -4215,15 +4215,6 @@ declare module _ {
|
||||
|
||||
//_.each
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* @see _.forEach
|
||||
*/
|
||||
each(
|
||||
collection: string,
|
||||
iteratee?: StringIterator<any>,
|
||||
thisArg?: any
|
||||
): string;
|
||||
|
||||
/**
|
||||
* @see _.forEach
|
||||
*/
|
||||
@@ -4250,6 +4241,24 @@ declare module _ {
|
||||
iteratee?: DictionaryIterator<T, any>,
|
||||
thisArg?: any
|
||||
): Dictionary<T>;
|
||||
|
||||
/**
|
||||
* @see _.forEach
|
||||
*/
|
||||
each<T extends {}>(
|
||||
collection: T,
|
||||
iteratee?: ObjectIterator<any, any>,
|
||||
thisArgs?: any
|
||||
): T;
|
||||
|
||||
/**
|
||||
* @see _.forEach
|
||||
*/
|
||||
each<T extends {}, TValue>(
|
||||
collection: T,
|
||||
iteratee?: ObjectIterator<TValue, any>,
|
||||
thisArgs?: any
|
||||
): T;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapper<T> {
|
||||
@@ -4257,7 +4266,7 @@ declare module _ {
|
||||
* @see _.forEach
|
||||
*/
|
||||
each(
|
||||
iteratee: StringIterator<any>,
|
||||
iteratee: ListIterator<string, any>,
|
||||
thisArg?: any
|
||||
): LoDashImplicitWrapper<string>;
|
||||
}
|
||||
@@ -4287,7 +4296,7 @@ declare module _ {
|
||||
* @see _.forEach
|
||||
*/
|
||||
each(
|
||||
iteratee: StringIterator<any>,
|
||||
iteratee: ListIterator<string, any>,
|
||||
thisArg?: any
|
||||
): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
@@ -4314,15 +4323,6 @@ declare module _ {
|
||||
|
||||
//_.eachRight
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
eachRight(
|
||||
collection: string,
|
||||
iteratee?: StringIterator<any>,
|
||||
thisArg?: any
|
||||
): string;
|
||||
|
||||
/**
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
@@ -4349,6 +4349,24 @@ declare module _ {
|
||||
iteratee?: DictionaryIterator<T, any>,
|
||||
thisArg?: any
|
||||
): Dictionary<T>;
|
||||
|
||||
/**
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
eachRight<T extends {}>(
|
||||
collection: T,
|
||||
iteratee?: ObjectIterator<any, any>,
|
||||
thisArgs?: any
|
||||
): T;
|
||||
|
||||
/**
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
eachRight<T extends {}, TValue>(
|
||||
collection: T,
|
||||
iteratee?: ObjectIterator<TValue, any>,
|
||||
thisArgs?: any
|
||||
): T;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapper<T> {
|
||||
@@ -4356,7 +4374,7 @@ declare module _ {
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
eachRight(
|
||||
iteratee: StringIterator<any>,
|
||||
iteratee: ListIterator<string, any>,
|
||||
thisArg?: any
|
||||
): LoDashImplicitWrapper<string>;
|
||||
}
|
||||
@@ -4386,7 +4404,7 @@ declare module _ {
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
eachRight(
|
||||
iteratee: StringIterator<any>,
|
||||
iteratee: ListIterator<string, any>,
|
||||
thisArg?: any
|
||||
): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
@@ -5089,15 +5107,6 @@ declare module _ {
|
||||
* @param iteratee The function invoked per iteration.
|
||||
* @param thisArg The this binding of iteratee.
|
||||
*/
|
||||
forEach(
|
||||
collection: string,
|
||||
iteratee?: StringIterator<any>,
|
||||
thisArg?: any
|
||||
): string;
|
||||
|
||||
/**
|
||||
* @see _.forEach
|
||||
*/
|
||||
forEach<T>(
|
||||
collection: T[],
|
||||
iteratee?: ListIterator<T, any>,
|
||||
@@ -5121,6 +5130,24 @@ declare module _ {
|
||||
iteratee?: DictionaryIterator<T, any>,
|
||||
thisArg?: any
|
||||
): Dictionary<T>;
|
||||
|
||||
/**
|
||||
* @see _.forEach
|
||||
*/
|
||||
forEach<T extends {}>(
|
||||
collection: T,
|
||||
iteratee?: ObjectIterator<any, any>,
|
||||
thisArgs?: any
|
||||
): T;
|
||||
|
||||
/**
|
||||
* @see _.forEach
|
||||
*/
|
||||
forEach<T extends {}, TValue>(
|
||||
collection: T,
|
||||
iteratee?: ObjectIterator<TValue, any>,
|
||||
thisArgs?: any
|
||||
): T;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapper<T> {
|
||||
@@ -5128,7 +5155,7 @@ declare module _ {
|
||||
* @see _.forEach
|
||||
*/
|
||||
forEach(
|
||||
iteratee: StringIterator<any>,
|
||||
iteratee: ListIterator<string, any>,
|
||||
thisArg?: any
|
||||
): LoDashImplicitWrapper<string>;
|
||||
}
|
||||
@@ -5158,7 +5185,7 @@ declare module _ {
|
||||
* @see _.forEach
|
||||
*/
|
||||
forEach(
|
||||
iteratee: StringIterator<any>,
|
||||
iteratee: ListIterator<string, any>,
|
||||
thisArg?: any
|
||||
): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
@@ -5194,15 +5221,6 @@ declare module _ {
|
||||
* @param iteratee The function called per iteration.
|
||||
* @param thisArg The this binding of callback.
|
||||
*/
|
||||
forEachRight(
|
||||
collection: string,
|
||||
iteratee?: StringIterator<any>,
|
||||
thisArg?: any
|
||||
): string;
|
||||
|
||||
/**
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
forEachRight<T>(
|
||||
collection: T[],
|
||||
iteratee?: ListIterator<T, any>,
|
||||
@@ -5226,6 +5244,24 @@ declare module _ {
|
||||
iteratee?: DictionaryIterator<T, any>,
|
||||
thisArg?: any
|
||||
): Dictionary<T>;
|
||||
|
||||
/**
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
forEachRight<T extends {}>(
|
||||
collection: T,
|
||||
iteratee?: ObjectIterator<any, any>,
|
||||
thisArgs?: any
|
||||
): T;
|
||||
|
||||
/**
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
forEachRight<T extends {}, TValue>(
|
||||
collection: T,
|
||||
iteratee?: ObjectIterator<TValue, any>,
|
||||
thisArgs?: any
|
||||
): T;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapper<T> {
|
||||
@@ -5233,7 +5269,7 @@ declare module _ {
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
forEachRight(
|
||||
iteratee: StringIterator<any>,
|
||||
iteratee: ListIterator<string, any>,
|
||||
thisArg?: any
|
||||
): LoDashImplicitWrapper<string>;
|
||||
}
|
||||
@@ -5263,7 +5299,7 @@ declare module _ {
|
||||
* @see _.forEachRight
|
||||
*/
|
||||
forEachRight(
|
||||
iteratee: StringIterator<any>,
|
||||
iteratee: ListIterator<string, any>,
|
||||
thisArg?: any
|
||||
): LoDashExplicitWrapper<string>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user