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