From a0dcb70486ce1a5bb3130a044d01c107a93b2a05 Mon Sep 17 00:00:00 2001 From: Drew Wyatt Date: Thu, 1 Nov 2018 09:59:22 -0400 Subject: [PATCH] added second placeholder definition to divide --- 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 5eaef29614..0e4f0a1f66 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -889,6 +889,7 @@ declare namespace R { * Divides two numbers. Equivalent to a / b. */ divide(__: Placeholder, b: number): (a: number) => number; + divide(__: Placeholder): (b: number, a: number) => number; divide(a: number, b: number): number; divide(a: number): (b: number) => number; diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index c370269925..612411f710 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -129,6 +129,7 @@ class F2 { R.concat(R.__, [4, 5, 6])([1, 2, 3]); // [1, 2, 3, 4, 5, 6] R.concat(R.__)([4, 5, 6], [1, 2, 3]); // [1, 2, 3, 4, 5, 6] R.contains(R.__, [1, 2, 3])(3); // true + R.divide(R.__)(2, 42); // 21 R.divide(R.__, 2)(42); // 21 R.gt(R.__, 2)(10); // true R.gte(R.__, 6)(2); // false