mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
lodash: signatures of _.isObject have been changed
This commit is contained in:
+18
-4
@@ -5657,10 +5657,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
@@ -9582,9 +9582,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;
|
||||
}
|
||||
|
||||
@@ -9595,6 +9596,13 @@ declare module _ {
|
||||
isObject(): boolean;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* see _.isObject
|
||||
*/
|
||||
isObject(): LoDashExplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.isPlainObject
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user