mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 12:43:06 +08:00
lodash: changed _.isFunction() method
This commit is contained in:
@@ -1215,6 +1215,12 @@ result = <boolean>_(1).isFinite();
|
||||
result = <boolean>_<any>([]).isFinite();
|
||||
result = <boolean>_({}).isFinite();
|
||||
|
||||
// _.isFunction
|
||||
result = <boolean>_.isFunction(any);
|
||||
result = <boolean>_(1).isFunction();
|
||||
result = <boolean>_<any>([]).isFunction();
|
||||
result = <boolean>_({}).isFunction();
|
||||
|
||||
// _.isMatch
|
||||
var testIsMatchCustiomizerFn: (value: any, other: any, indexOrKey: number|string) => boolean;
|
||||
result = <boolean>_.isMatch({}, {});
|
||||
@@ -1470,8 +1476,6 @@ result = <boolean>_(testEqArray).isEqual(testEqOtherArray, testEqCustomizerFn);
|
||||
result = <boolean>_.eq(testEqArray, testEqOtherArray, testEqCustomizerFn);
|
||||
result = <boolean>_(testEqArray).eq(testEqOtherArray, testEqCustomizerFn);
|
||||
|
||||
result = <boolean>_.isFunction(_);
|
||||
|
||||
result = <boolean>_.isNull(null);
|
||||
result = <boolean>_.isNull(undefined);
|
||||
|
||||
|
||||
Vendored
+17
-10
@@ -6215,6 +6215,23 @@ declare module _ {
|
||||
isFinite(): boolean;
|
||||
}
|
||||
|
||||
//_.isFunction
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Checks if value is classified as a Function object.
|
||||
* @param value The value to check.
|
||||
* @return Returns true if value is correctly classified, else false.
|
||||
**/
|
||||
isFunction(value?: any): boolean;
|
||||
}
|
||||
|
||||
interface LoDashWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* @see _.isFunction
|
||||
*/
|
||||
isFunction(): boolean;
|
||||
}
|
||||
|
||||
//_.isMatch
|
||||
interface isMatchCustomizer {
|
||||
(value: any, other: any, indexOrKey?: number|string): boolean;
|
||||
@@ -7090,16 +7107,6 @@ declare module _ {
|
||||
thisArg?: any): boolean;
|
||||
}
|
||||
|
||||
//_.isFunction
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Checks if value is a function.
|
||||
* @param value The value to check.
|
||||
* @return True if the value is a function, else false.
|
||||
**/
|
||||
isFunction(value?: any): boolean;
|
||||
}
|
||||
|
||||
//_.isNull
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user