Add defintions for _(...).functions, _(...).methods

This commit is contained in:
Brian Zengel
2013-11-10 19:32:26 -05:00
parent b8c64ce7ba
commit 106a8f8ae6
2 changed files with 15 additions and 0 deletions
+3
View File
@@ -708,6 +708,9 @@ result = <any>_.forOwnRight({ '0': 'zero', '1': 'one', 'length': 2 }, function(n
result = <string[]>_.functions(_);
result = <string[]>_.methods(_);
result = <_.LoDashArrayWrapper<string>>_(_).functions();
result = <_.LoDashArrayWrapper<string>>_(_).methods();
result = <boolean>_.has({ 'a': 1, 'b': 2, 'c': 3 }, 'b');
result = <any>_.invert({ 'first': 'moe', 'second': 'larry' });
+12
View File
@@ -3347,6 +3347,18 @@ declare module _ {
methods(object: any): string[];
}
interface LoDashObjectWrapper {
/**
* @see _.functions
**/
functions(): _.LoDashArrayWrapper<string>
/**
* @see _.functions
**/
methods(): _.LoDashArrayWrapper<string>
}
//_.has
interface LoDashStatic {
/**