mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
lodash: signatures of the method _.lte have been changed
This commit is contained in:
+18
-5
@@ -4985,7 +4985,6 @@ result = <boolean>_<any>([]).isUndefined();
|
||||
result = <boolean>_({}).isUndefined();
|
||||
|
||||
// _.lt
|
||||
|
||||
module TestLt {
|
||||
{
|
||||
let result: boolean;
|
||||
@@ -5006,10 +5005,24 @@ module TestLt {
|
||||
}
|
||||
|
||||
// _.lte
|
||||
result = <boolean>_.lte(1, 2);
|
||||
result = <boolean>_(1).lte(2);
|
||||
result = <boolean>_([]).lte(2);
|
||||
result = <boolean>_({}).lte(2);
|
||||
module TestLte {
|
||||
{
|
||||
let result: boolean;
|
||||
|
||||
result = _.lte(any, any);
|
||||
result = _(1).lte(any);
|
||||
result = _([]).lte(any);
|
||||
result = _({}).lte(any);
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<boolean>;
|
||||
|
||||
result = _(1).chain().lte(any);
|
||||
result = _([]).chain().lte(any);
|
||||
result = _({}).chain().lte(any);
|
||||
}
|
||||
}
|
||||
|
||||
// _.toArray
|
||||
module TestToArray {
|
||||
|
||||
Vendored
+13
-2
@@ -8986,20 +8986,31 @@ declare module _ {
|
||||
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;
|
||||
lte(
|
||||
value: any,
|
||||
other: any
|
||||
): boolean;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapperBase<T,TWrapper> {
|
||||
interface LoDashImplicitWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* @see _.lte
|
||||
*/
|
||||
lte(other: any): boolean;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* @see _.lte
|
||||
*/
|
||||
lte(other: any): LoDashExplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.toArray
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user