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

This commit is contained in:
Ilya Mochalov
2015-11-11 19:55:52 +05:00
parent 708609e076
commit 469e9bacdf
2 changed files with 31 additions and 6 deletions
+18 -4
View File
@@ -4083,10 +4083,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
@@ -8081,20 +8081,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 {
/**