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

This commit is contained in:
Ilya Mochalov
2015-11-17 21:04:43 +05:00
parent 0a6894d9ec
commit 0ccf4dd544
2 changed files with 31 additions and 7 deletions
+18 -5
View File
@@ -4985,7 +4985,6 @@ result = <boolean>_<any>([]).isUndefined();
result = <boolean>_({}).isUndefined();
// _.lt
module TestLt {
{
let result: boolean;
@@ -5006,10 +5005,24 @@ module TestLt {
}
// _.lte
result = <boolean>_.lte(1, 2);
result = <boolean>_(1).lte(2);
result = <boolean>_([]).lte(2);
result = <boolean>_({}).lte(2);
module TestLte {
{
let result: boolean;
result = _.lte(any, any);
result = _(1).lte(any);
result = _([]).lte(any);
result = _({}).lte(any);
}
{
let result: _.LoDashExplicitWrapper<boolean>;
result = _(1).chain().lte(any);
result = _([]).chain().lte(any);
result = _({}).chain().lte(any);
}
}
// _.toArray
module TestToArray {
+13 -2
View File
@@ -8986,20 +8986,31 @@ declare module _ {
interface LoDashStatic {
/**
* Checks if value is less than or equal to other.
*
* @param value The value to compare.
* @param other The other value to compare.
* @return Returns true if value is less than or equal to other, else false.
*/
lte(value: any, other: any): boolean;
lte(
value: any,
other: any
): boolean;
}
interface LoDashImplicitWrapperBase<T,TWrapper> {
interface LoDashImplicitWrapperBase<T, TWrapper> {
/**
* @see _.lte
*/
lte(other: any): boolean;
}
interface LoDashExplicitWrapperBase<T, TWrapper> {
/**
* @see _.lte
*/
lte(other: any): LoDashExplicitWrapper<boolean>;
}
//_.toArray
interface LoDashStatic {
/**