_(...).forIn definitions

This commit is contained in:
Brian Zengel
2013-11-10 18:27:20 -05:00
parent c24bc7ad5c
commit 951fd3692d
2 changed files with 15 additions and 2 deletions
+4
View File
@@ -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);
});
+11 -2
View File
@@ -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 {
/**