From 7a5ef000dc904bdec879edc1a032a7351905a2a7 Mon Sep 17 00:00:00 2001 From: Drew Wyatt Date: Wed, 31 Oct 2018 18:33:32 -0400 Subject: [PATCH] updated mathMod to include placeholder definition --- types/ramda/index.d.ts | 1 + types/ramda/ramda-tests.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 587536ebd5..4795bfe23b 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -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; diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index b0140f3c04..e0d170ed52 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -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 }; () => {