From 27fd582d60a6f766044ce42a97848283de53bb39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20van=20Br=C3=BCgge?= Date: Tue, 17 Oct 2017 22:30:11 +0200 Subject: [PATCH 1/2] Add applyTo --- types/ramda/index.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 776c074b73..9a611459d2 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -242,6 +242,13 @@ declare namespace R { * the supplied arguments. */ applySpec(obj: any): (...args: any[]) => T; + + /** + * Takes a value and applies a function to it. + * This function is also known as the thrush combinator. + */ + applyTo(el: T, fn: (t: T) => U): U; + applyTo(el: T): (fn: (t: T) => U) => U; /** * Makes an ascending comparator function out of a function that returns a value that can be compared with < and >. From 81f249f1d3cef16964907954ed1a71540a98c760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20van=20Br=C3=BCgge?= Date: Thu, 9 Nov 2017 13:12:32 +0100 Subject: [PATCH 2/2] Fix trailing whitespace --- types/ramda/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 9a611459d2..a5e39f33f3 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -242,7 +242,7 @@ declare namespace R { * the supplied arguments. */ applySpec(obj: any): (...args: any[]) => T; - + /** * Takes a value and applies a function to it. * This function is also known as the thrush combinator.