mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
lodash: signatures of the method _.lt have been changed
This commit is contained in:
+19
-4
@@ -4330,10 +4330,25 @@ result = <boolean>_<any>([]).isUndefined();
|
||||
result = <boolean>_({}).isUndefined();
|
||||
|
||||
// _.lt
|
||||
result = <boolean>_.lt(1, 2);
|
||||
result = <boolean>_(1).lt(2);
|
||||
result = <boolean>_([]).lt(2);
|
||||
result = <boolean>_({}).lt(2);
|
||||
|
||||
module TestLt {
|
||||
{
|
||||
let result: boolean;
|
||||
|
||||
result = _.lt(any, any);
|
||||
result = _(1).lt(any);
|
||||
result = _([]).lt(any);
|
||||
result = _({}).lt(any);
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<boolean>;
|
||||
|
||||
result = _(1).chain().lt(any);
|
||||
result = _([]).chain().lt(any);
|
||||
result = _({}).chain().lt(any);
|
||||
}
|
||||
}
|
||||
|
||||
// _.lte
|
||||
result = <boolean>_.lte(1, 2);
|
||||
|
||||
Vendored
+13
-2
@@ -8513,20 +8513,31 @@ declare module _ {
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Checks if value is less than other.
|
||||
*
|
||||
* @param value The value to compare.
|
||||
* @param other The other value to compare.
|
||||
* @return Returns true if value is less than other, else false.
|
||||
*/
|
||||
lt(value: any, other: any): boolean;
|
||||
lt(
|
||||
value: any,
|
||||
other: any
|
||||
): boolean;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapperBase<T,TWrapper> {
|
||||
interface LoDashImplicitWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* @see _.lt
|
||||
*/
|
||||
lt(other: any): boolean;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* @see _.lt
|
||||
*/
|
||||
lt(other: any): LoDashExplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.lte
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user