From e9fd4f5669652ef9af5fb7e959c4fdaca839cc48 Mon Sep 17 00:00:00 2001 From: Andy Date: Mon, 28 Aug 2017 07:20:42 -0700 Subject: [PATCH] ramda: Fix compile errors (#19209) * ramda: Fix compile errors * Update TypeScript version --- types/ramda/index.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 5a8ea8f332..ed11be63f5 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -10,7 +10,7 @@ // Jordan Quagliatini // Simon HĂžjberg // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 +// TypeScript Version: 2.4 declare let R: R.Static; @@ -1030,9 +1030,9 @@ declare namespace R { * otherwise the provided function is applied to associated values using the resulting value as the new value * associated with the key. If a key only exists in one object, the value will be associated with the key of the resulting object. */ - mergeDeepWith(fn: (x: T3, z: T4) => T3 & T4, a: T1, b: T2): T1 & T2; - mergeDeepWith(fn: (x: T3, z: T4) => T3 & T4, a: T1): (b: T2) => T1 & T2; - mergeDeepWith(fn: (x: T3, z: T4) => T3 & T4): (a: T1, b: T2) => T1 & T2; + mergeDeepWith(fn: (x: any, z: any) => any, a: T1, b: T2): T1 & T2; + mergeDeepWith(fn: (x: any, z: any) => any, a: T1): (b: T2) => T1 & T2; + mergeDeepWith(fn: (x: any, z: any) => any): (a: T1, b: T2) => T1 & T2; /** * Creates a new object with the own properties of the two provided objects. If a key exists in both objects: @@ -1041,9 +1041,9 @@ declare namespace R { * the new value associated with the key. If a key only exists in one object, the value will be associated with * the key of the resulting object. */ - mergeDeepWithKey(fn: (k: string, x: T3, z: T4) => T3 & T4, a: T1, b: T2): T1 & T2; - mergeDeepWithKey(fn: (k: string, x: T3, z: T4) => T3 & T4, a: T1): (b: T2) => T1 & T2; - mergeDeepWithKey(fn: (k: string, x: T3, z: T4) => T3 & T4): (a: T1, b: T2) => T1 & T2; + mergeDeepWithKey(fn: (k: string, x: any, z: any) => any, a: T1, b: T2): T1 & T2; + mergeDeepWithKey(fn: (k: string, x: any, z: any) => any, a: T1): (b: T2) => T1 & T2; + mergeDeepWithKey(fn: (k: string, x: any, z: any) => any): (a: T1, b: T2) => T1 & T2; /** * Creates a new object with the own properties of the two provided objects. If a key exists in both objects,