lodash: signatures of the method _.lt have been changed

This commit is contained in:
Ilya Mochalov
2015-11-14 18:47:39 +05:00
parent efd40e67ff
commit 9365314163
2 changed files with 32 additions and 6 deletions
+19 -4
View File
@@ -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);
+13 -2
View File
@@ -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 {
/**