mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-27 11:40:08 +08:00
_(...).forIn definitions
This commit is contained in:
@@ -677,6 +677,10 @@ result = <any>_.forIn(new Dog('Dagny'), function(value, key) {
|
||||
console.log(key);
|
||||
});
|
||||
|
||||
result = <_.LoDashObjectWrapper<any>>_(new Dog('Dagny')).forIn(function(value, key) {
|
||||
console.log(key);
|
||||
});
|
||||
|
||||
result = <any>_.forInRight(new Dog('Dagny'), function(value, key) {
|
||||
console.log(key);
|
||||
});
|
||||
|
||||
Vendored
+11
-2
@@ -1693,14 +1693,14 @@ declare module _ {
|
||||
**/
|
||||
forEachRight<T>(
|
||||
callback: ListIterator<T, void >,
|
||||
thisArg?: any): LoDashArrayWrapper<List<T>>;
|
||||
thisArg?: any): LoDashArrayWrapper<T>;
|
||||
|
||||
/**
|
||||
* @see _.forEachRight
|
||||
**/
|
||||
eachRight<T>(
|
||||
callback: ListIterator<T, void >,
|
||||
thisArg?: any): LoDashArrayWrapper<List<T>>;
|
||||
thisArg?: any): LoDashArrayWrapper<T>;
|
||||
}
|
||||
|
||||
interface LoDashObjectWrapper<T> {
|
||||
@@ -3246,6 +3246,15 @@ declare module _ {
|
||||
thisArg?: any): Dictionary<T>;
|
||||
}
|
||||
|
||||
interface LoDashObjectWrapper {
|
||||
/**
|
||||
* @see _.forIn
|
||||
**/
|
||||
forIn<T extends {}>(
|
||||
callback?: ObjectIterator<T, void>,
|
||||
thisArg?: any): Dictionary<T>;
|
||||
}
|
||||
|
||||
//_.forInRight
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user