Merge pull request #7275 from chrootsu/lodash-isUndefined

lodash: signatures of _.isUndefined have been changed
This commit is contained in:
Masahiro Wakame
2015-12-23 16:50:18 +09:00
2 changed files with 28 additions and 5 deletions
+19 -4
View File
@@ -6103,10 +6103,25 @@ module TestIsTypedArray {
}
// _.isUndefined
result = <boolean>_.isUndefined(any);
result = <boolean>_(1).isUndefined();
result = <boolean>_<any>([]).isUndefined();
result = <boolean>_({}).isUndefined();
module TestIsUndefined {
{
let result: boolean;
result = _.isUndefined(any);
result = _(1).isUndefined();
result = _<any>([]).isUndefined();
result = _({}).isUndefined();
}
{
let result: _.LoDashExplicitWrapper<boolean>;
result = _(1).chain().isUndefined();
result = _<any>([]).chain().isUndefined();
result = _({}).chain().isUndefined();
}
}
// _.lt
module TestLt {
+9 -1
View File
@@ -10191,9 +10191,10 @@ declare module _ {
interface LoDashStatic {
/**
* Checks if value is undefined.
*
* @param value The value to check.
* @return Returns true if value is undefined, else false.
**/
*/
isUndefined(value: any): boolean;
}
@@ -10204,6 +10205,13 @@ declare module _ {
isUndefined(): boolean;
}
interface LoDashExplicitWrapperBase<T, TWrapper> {
/**
* see _.isUndefined
*/
isUndefined(): LoDashExplicitWrapper<boolean>;
}
//_.lt
interface LoDashStatic {
/**