mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Merge pull request #6973 from chrootsu/lodash-isNull
lodash: signatures of _.isNull have been changed
This commit is contained in:
+19
-4
@@ -5159,10 +5159,25 @@ result = <boolean>_(Array.prototype.push).isNative();
|
||||
}
|
||||
|
||||
// _.isNull
|
||||
result = <boolean>_.isNull(any);
|
||||
result = <boolean>_(1).isNull();
|
||||
result = <boolean>_<any>([]).isNull();
|
||||
result = <boolean>_({}).isNull();
|
||||
module TestIsNull {
|
||||
{
|
||||
let result: boolean;
|
||||
|
||||
result = _.isNull(any);
|
||||
|
||||
result = _(1).isNull();
|
||||
result = _<any>([]).isNull();
|
||||
result = _({}).isNull();
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<boolean>;
|
||||
|
||||
result = _(1).chain().isNull();
|
||||
result = _<any>([]).chain().isNull();
|
||||
result = _({}).chain().isNull();
|
||||
}
|
||||
}
|
||||
|
||||
// _.isNumber
|
||||
result = <boolean>_.isNumber(any);
|
||||
|
||||
Vendored
+9
-1
@@ -8995,9 +8995,10 @@ declare module _ {
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Checks if value is null.
|
||||
*
|
||||
* @param value The value to check.
|
||||
* @return Returns true if value is null, else false.
|
||||
**/
|
||||
*/
|
||||
isNull(value?: any): boolean;
|
||||
}
|
||||
|
||||
@@ -9008,6 +9009,13 @@ declare module _ {
|
||||
isNull(): boolean;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* see _.isNull
|
||||
*/
|
||||
isNull(): LoDashExplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.isNumber
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user