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

This commit is contained in:
Ilya Mochalov
2015-11-16 23:01:06 +05:00
parent c560ba6f0f
commit 4b52db83f7
2 changed files with 31 additions and 6 deletions
+18 -4
View File
@@ -4718,10 +4718,24 @@ module TestEq {
}
// _.gt
result = <boolean>_.gt(1, 2);
result = <boolean>_(1).gt(2);
result = <boolean>_([]).gt(2);
result = <boolean>_({}).gt(2);
module TestGt {
{
let result: boolean;
result = _.gt(any, any);
result = _(1).gt(any);
result = _([]).gt(any);
result = _({}).gt(any);
}
{
let result: _.LoDashExplicitWrapper<boolean>;
result = _(1).chain().gt(any);
result = _([]).chain().gt(any);
result = _({}).chain().gt(any);
}
}
// _.gte
module TestGte {
+13 -2
View File
@@ -8496,20 +8496,31 @@ declare module _ {
interface LoDashStatic {
/**
* Checks if value is greater than other.
*
* @param value The value to compare.
* @param other The other value to compare.
* @return Returns true if value is greater than other, else false.
*/
gt(value: any, other: any): boolean;
gt(
value: any,
other: any
): boolean;
}
interface LoDashImplicitWrapperBase<T,TWrapper> {
interface LoDashImplicitWrapperBase<T, TWrapper> {
/**
* @see _.gt
*/
gt(other: any): boolean;
}
interface LoDashExplicitWrapperBase<T, TWrapper> {
/**
* @see _.gt
*/
gt(other: any): LoDashExplicitWrapper<boolean>;
}
//_.gte
interface LoDashStatic {
/**