mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
updated mathMod to include placeholder definition
This commit is contained in:
Vendored
+1
@@ -1376,6 +1376,7 @@ declare namespace R {
|
||||
* mathMod(-17, 5) is 3. mathMod requires Integer arguments, and returns NaN
|
||||
* when the modulus is zero or negative.
|
||||
*/
|
||||
mathMod(__: Placeholder, b: number): (a: number) => number;
|
||||
mathMod(a: number, b: number): number;
|
||||
mathMod(a: number): (b: number) => number;
|
||||
|
||||
|
||||
@@ -132,6 +132,7 @@ class F2 {
|
||||
R.divide(R.__, 2)(42); // 21
|
||||
R.gt(R.__, 2)(10); // true
|
||||
R.has(R.__, {x: 0, y: 0})('x'); // true;
|
||||
R.mathMod(R.__, 12)(15); // 3
|
||||
};
|
||||
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user