mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-23 11:50:15 +08:00
Merge pull request #7259 from chrootsu/lodash-isObject
lodash: signatures of _.isObject have been changed
This commit is contained in:
+18
-4
@@ -5989,10 +5989,24 @@ result = <boolean>_({}).isNumber();
|
||||
}
|
||||
|
||||
// _.isObject
|
||||
result = <boolean>_.isObject(any);
|
||||
result = <boolean>_(1).isObject();
|
||||
result = <boolean>_<any>([]).isObject();
|
||||
result = <boolean>_({}).isObject();
|
||||
module TestIsObject {
|
||||
{
|
||||
let result: boolean;
|
||||
|
||||
result = _.isObject(any);
|
||||
result = _(1).isObject();
|
||||
result = _<any>([]).isObject();
|
||||
result = _({}).isObject();
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<boolean>;
|
||||
|
||||
result = _(1).chain().isObject();
|
||||
result = _<any>([]).chain().isObject();
|
||||
result = _({}).chain().isObject();
|
||||
}
|
||||
}
|
||||
|
||||
// _.isPlainObject
|
||||
result = <boolean>_.isPlainObject(any);
|
||||
|
||||
Vendored
+9
-1
@@ -10067,9 +10067,10 @@ declare module _ {
|
||||
/**
|
||||
* Checks if value is the language type of Object. (e.g. arrays, functions, objects, regexes, new Number(0),
|
||||
* and new String(''))
|
||||
*
|
||||
* @param value The value to check.
|
||||
* @return Returns true if value is an object, else false.
|
||||
**/
|
||||
*/
|
||||
isObject(value?: any): boolean;
|
||||
}
|
||||
|
||||
@@ -10080,6 +10081,13 @@ declare module _ {
|
||||
isObject(): boolean;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* see _.isObject
|
||||
*/
|
||||
isObject(): LoDashExplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.isPlainObject
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user