lodash: signatures of _.isNull have been changed

This commit is contained in:
Ilya Mochalov
2015-11-28 09:36:59 +05:00
parent fb2b3b1e06
commit 2acc0fe641
2 changed files with 28 additions and 5 deletions
+19 -4
View File
@@ -5092,10 +5092,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);
+9 -1
View File
@@ -8919,9 +8919,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;
}
@@ -8932,6 +8933,13 @@ declare module _ {
isNull(): boolean;
}
interface LoDashExplicitWrapperBase<T, TWrapper> {
/**
* see _.isNull
*/
isNull(): LoDashExplicitWrapper<boolean>;
}
//_.isNumber
interface LoDashStatic {
/**