From 2ab3885f989738ee18b2985476c6fe4d259d6bdb Mon Sep 17 00:00:00 2001 From: kujon Date: Wed, 6 Sep 2017 14:21:55 +0100 Subject: [PATCH] Reverted the changes to keys, values and toPairs --- types/ramda/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 35167c5f23..57fb0d0274 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -842,7 +842,7 @@ declare namespace R { * Returns a list containing the names of all the enumerable own * properties of the supplied object. */ - keys(x: T): Array; + keys(x: T): string[]; /** * Returns a list containing the names of all the @@ -1736,7 +1736,7 @@ declare namespace R { * Note that the order of the output array is not guaranteed to be * consistent across different JS platforms. */ - toPairs(obj: T): Array<[keyof T, T[keyof T]]>; + toPairs(obj: { [k: string]: S } | { [k: number]: S } | any): Array<[F, S]>; /** * Converts an object into an array of key, value arrays. @@ -1916,7 +1916,7 @@ declare namespace R { * Note that the order of the output array is not guaranteed across * different JS platforms. */ - values(obj: T): T[keyof T]; + values(obj: { [index: string]: T } | any): T[]; /** * Returns a list of all the properties, including prototype properties, of the supplied