mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
added placeholder definition to gte
This commit is contained in:
Vendored
+2
@@ -1073,6 +1073,7 @@ declare namespace R {
|
||||
/**
|
||||
* Returns true if the first parameter is greater than or equal to the second.
|
||||
*/
|
||||
gte(__: Placeholder, b: number): (a: number) => boolean;
|
||||
gte(a: number, b: number): boolean;
|
||||
gte(a: number): (b: number) => boolean;
|
||||
|
||||
@@ -1513,6 +1514,7 @@ declare namespace R {
|
||||
* Note that this functions preserves the JavaScript-style behavior for
|
||||
* modulo. For mathematical modulo see `mathMod`
|
||||
*/
|
||||
modulo(__: Placeholder, b: number): (a: number) => number;
|
||||
modulo(a: number, b: number): number;
|
||||
modulo(a: number): (b: number) => number;
|
||||
|
||||
|
||||
@@ -131,6 +131,7 @@ class F2 {
|
||||
R.contains(R.__, [1, 2, 3])(3); // true
|
||||
R.divide(R.__, 2)(42); // 21
|
||||
R.gt(R.__, 2)(10); // true
|
||||
R.gte(R.__, 6)(2); // false
|
||||
R.has(R.__, {x: 0, y: 0})('x'); // 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