Merge pull request #6715 from chrootsu/lodash-gte

lodash: signatures of the method _.gte have been changed
This commit is contained in:
Masahiro Wakame
2015-11-16 21:39:29 +09:00
2 changed files with 31 additions and 6 deletions
+18 -4
View File
@@ -4217,10 +4217,24 @@ result = <boolean>_([]).gt(2);
result = <boolean>_({}).gt(2);
// _.gte
result = <boolean>_.gte(1, 2);
result = <boolean>_(1).gte(2);
result = <boolean>_([]).gte(2);
result = <boolean>_({}).gte(2);
module TestGte {
{
let result: boolean;
result = _.gte(any, any);
result = _(1).gte(any);
result = _([]).gte(any);
result = _({}).gte(any);
}
{
let result: _.LoDashExplicitWrapper<boolean>;
result = _(1).chain().gte(any);
result = _([]).chain().gte(any);
result = _({}).chain().gte(any);
}
}
// _.isArguments
result = <boolean>_.isArguments(any);
+13 -2
View File
@@ -8188,20 +8188,31 @@ declare module _ {
interface LoDashStatic {
/**
* Checks if value is greater than or equal to other.
*
* @param value The value to compare.
* @param other The other value to compare.
* @return Returns true if value is greater than or equal to other, else false.
*/
gte(value: any, other: any): boolean;
gte(
value: any,
other: any
): boolean;
}
interface LoDashImplicitWrapperBase<T,TWrapper> {
interface LoDashImplicitWrapperBase<T, TWrapper> {
/**
* @see _.gte
*/
gte(other: any): boolean;
}
interface LoDashExplicitWrapperBase<T, TWrapper> {
/**
* @see _.gte
*/
gte(other: any): LoDashExplicitWrapper<boolean>;
}
//_.isArguments
interface LoDashStatic {
/**