mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
lodash: signatures of the method _.gt have been changed
This commit is contained in:
+18
-4
@@ -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 {
|
||||
|
||||
Vendored
+13
-2
@@ -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 {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user