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] 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 >.