Merge pull request #6765 from chrootsu/lodash-lt

lodash: signatures of the method _.lt have been changed
This commit is contained in:
Masahiro Wakame
2015-11-16 23:03:07 +09:00
2 changed files with 32 additions and 6 deletions
+19 -4
View File
@@ -4985,10 +4985,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
@@ -8957,20 +8957,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 {
/**