mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add defintions for _(...).functions, _(...).methods
This commit is contained in:
@@ -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' });
|
||||
|
||||
Vendored
+12
@@ -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 {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user