mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #7275 from chrootsu/lodash-isUndefined
lodash: signatures of _.isUndefined have been changed
This commit is contained in:
+19
-4
@@ -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 {
|
||||
|
||||
Vendored
+9
-1
@@ -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 {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user