From 4854e64279ebdd570a6ccda6975db36d197c65b8 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Mon, 27 Mar 2017 16:47:43 +0530 Subject: [PATCH 1/3] fix `ifElse` typings --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 221c309..b99241a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2199,7 +2199,7 @@ declare namespace R { * Creates a function that will process either the onTrue or the onFalse function depending upon the result * of the condition predicate. */ - ifElse(fn: Pred, onTrue: (v: T) => U, onFalse: (v: T) => V): (v: T) => U|V; + ifElse(fn: (...k: any) => boolean, onTrue: (...v: any[]) => U, onFalse: (...v: any[]) => V): (v: T) => U|V; // ifElse: CurriedFunction3, (v: T) => U, (v: T) => V, (v: T) => U|V>; From aeb275429908473ba9a970abf74cb47032623f89 Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Tue, 28 Mar 2017 20:14:35 +0530 Subject: [PATCH 2/3] Update index.d.ts --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b99241a..8419808 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2199,7 +2199,7 @@ declare namespace R { * Creates a function that will process either the onTrue or the onFalse function depending upon the result * of the condition predicate. */ - ifElse(fn: (...k: any) => boolean, onTrue: (...v: any[]) => U, onFalse: (...v: any[]) => V): (v: T) => U|V; + ifElse(fn: (...k: any[]) => boolean, onTrue: (...v: any[]) => U, onFalse: (...v: any[]) => V): (v: T) => U|V; // ifElse: CurriedFunction3, (v: T) => U, (v: T) => V, (v: T) => U|V>; From 444d489f0822b8cd77b583cc8c92229f63c4112c Mon Sep 17 00:00:00 2001 From: Tushar Mathur Date: Tue, 28 Mar 2017 23:10:25 +0530 Subject: [PATCH 3/3] Update index.d.ts --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 8419808..542545e 100644 --- a/index.d.ts +++ b/index.d.ts @@ -2199,7 +2199,7 @@ declare namespace R { * Creates a function that will process either the onTrue or the onFalse function depending upon the result * of the condition predicate. */ - ifElse(fn: (...k: any[]) => boolean, onTrue: (...v: any[]) => U, onFalse: (...v: any[]) => V): (v: T) => U|V; + ifElse(fn: (...k: any[]) => boolean, onTrue: (...v: any[]) => U, onFalse: (...v: any[]) => V): (...v: any[]) => U|V; // ifElse: CurriedFunction3, (v: T) => U, (v: T) => V, (v: T) => U|V>;