mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
added placeholder definition to lte
This commit is contained in:
Vendored
+2
@@ -1316,12 +1316,14 @@ declare namespace R {
|
||||
/**
|
||||
* Returns true if the first parameter is less than the second.
|
||||
*/
|
||||
lt(__: Placeholder, b: number): (a: number) => boolean;
|
||||
lt(a: number, b: number): boolean;
|
||||
lt(a: number): (b: number) => boolean;
|
||||
|
||||
/**
|
||||
* Returns true if the first parameter is less than or equal to the second.
|
||||
*/
|
||||
lte(__: Placeholder, b: number): (a: number) => boolean;
|
||||
lte(a: number, b: number): boolean;
|
||||
lte(a: number): (b: number) => boolean;
|
||||
|
||||
|
||||
@@ -133,6 +133,8 @@ class F2 {
|
||||
R.gt(R.__, 2)(10); // true
|
||||
R.gte(R.__, 6)(2); // false
|
||||
R.has(R.__, {x: 0, y: 0})('x'); // true;
|
||||
R.lt(R.__, 5)(10); // false
|
||||
R.lte(R.__, 2)(1); // true
|
||||
R.mathMod(R.__, 12)(15); // 3
|
||||
R.merge(R.__, {x: 0})({x: 5, y: 2}); // {x: 0, y: 2}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user