diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 270d9a1e03..7557a96d73 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -762,7 +762,8 @@ declare namespace R { * Returns a new list consisting of the elements of the first list followed by the elements * of the second. */ - concat(placeholder: Placeholder): (list1: ReadonlyArray, list2: ReadonlyArray) => T[]; + concat(placeholder: Placeholder): (list2: ReadonlyArray, list1: ReadonlyArray) => T[]; + concat(placeholder: Placeholder, list2: ReadonlyArray): (list1: ReadonlyArray) => T[]; concat(list1: ReadonlyArray, list2: ReadonlyArray): T[]; concat(list1: ReadonlyArray): (list2: ReadonlyArray) => T[]; concat(list1: string, list2: string): string; @@ -791,7 +792,8 @@ declare namespace R { * Returns `true` if the specified item is somewhere in the list, `false` otherwise. * Equivalent to `indexOf(a)(list) > -1`. Uses strict (`===`) equality checking. */ - contains(__: Placeholder): (list: ReadonlyArray, a: T) => boolean; + contains(__: Placeholder, list: string): (a: string) => boolean; + contains(__: Placeholder, list: T[]): (a: T) => boolean; contains(a: string, list: string): boolean; contains(a: T, list: ReadonlyArray): boolean; contains(a: string): (list: string) => boolean; @@ -1064,6 +1066,7 @@ declare namespace R { /** * Returns true if the first parameter is greater than the second. */ + gt(__: Placeholder, b: number): (a: number) => boolean; gt(a: number, b: number): boolean; gt(a: number): (b: number) => boolean; diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index 49bc1d35c1..c3a54a9838 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -126,10 +126,11 @@ class F2 { /** R.__ */ () => { + R.concat(R.__, [4, 5, 6])([1, 2, 3]); // [1, 2, 3, 4, 5, 6] R.concat(R.__)([4, 5, 6], [1, 2, 3]); // [1, 2, 3, 4, 5, 6] - R.contains(R.__)([1, 2, 3], 3); // true + R.contains(R.__, [1, 2, 3])(3); // true R.divide(R.__, 2)(42); // 21 - + R.gt(R.__, 2)(10); // true }; () => {