mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-01 11:50:54 +08:00
Merge pull request #6715 from chrootsu/lodash-gte
lodash: signatures of the method _.gte have been changed
This commit is contained in:
+18
-4
@@ -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);
|
||||
|
||||
Vendored
+13
-2
@@ -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 {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user