mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
added _.gt(), _.gte(), _.lt() and _.lte() methods
This commit is contained in:
@@ -932,6 +932,30 @@ helloWrap2();
|
||||
* Lang *
|
||||
********/
|
||||
|
||||
// _.gt
|
||||
result = <boolean>_.gt(1, 2);
|
||||
result = <boolean>_(1).gt(2);
|
||||
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);
|
||||
|
||||
// _.lt
|
||||
result = <boolean>_.lt(1, 2);
|
||||
result = <boolean>_(1).lt(2);
|
||||
result = <boolean>_([]).lt(2);
|
||||
result = <boolean>_({}).lt(2);
|
||||
|
||||
// _.lte
|
||||
result = <boolean>_.lte(1, 2);
|
||||
result = <boolean>_(1).lte(2);
|
||||
result = <boolean>_([]).lte(2);
|
||||
result = <boolean>_({}).lte(2);
|
||||
|
||||
// _.toPlainObject
|
||||
result = <Object>_.toPlainObject();
|
||||
result = <Object>_.toPlainObject(true);
|
||||
|
||||
Vendored
+72
@@ -5570,6 +5570,78 @@ declare module _ {
|
||||
* Lang *
|
||||
********/
|
||||
|
||||
//_.gt
|
||||
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;
|
||||
}
|
||||
|
||||
interface LoDashWrapperBase<T,TWrapper> {
|
||||
/**
|
||||
* @see _.gt
|
||||
*/
|
||||
gt(other: any): boolean;
|
||||
}
|
||||
|
||||
//_.gte
|
||||
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;
|
||||
}
|
||||
|
||||
interface LoDashWrapperBase<T,TWrapper> {
|
||||
/**
|
||||
* @see _.gte
|
||||
*/
|
||||
gte(other: any): boolean;
|
||||
}
|
||||
|
||||
//_.lt
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Checks if value is less than other.
|
||||
* @param value The value to compare.
|
||||
* @param other The other value to compare.
|
||||
* @return Returns true if value is less than other, else false.
|
||||
*/
|
||||
lt(value: any, other: any): boolean;
|
||||
}
|
||||
|
||||
interface LoDashWrapperBase<T,TWrapper> {
|
||||
/**
|
||||
* @see _.lt
|
||||
*/
|
||||
lt(other: any): boolean;
|
||||
}
|
||||
|
||||
//_.lte
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Checks if value is less than or equal to other.
|
||||
* @param value The value to compare.
|
||||
* @param other The other value to compare.
|
||||
* @return Returns true if value is less than or equal to other, else false.
|
||||
*/
|
||||
lte(value: any, other: any): boolean;
|
||||
}
|
||||
|
||||
interface LoDashWrapperBase<T,TWrapper> {
|
||||
/**
|
||||
* @see _.lte
|
||||
*/
|
||||
lte(other: any): boolean;
|
||||
}
|
||||
|
||||
//_.toPlainObject
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user