diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index bfb5176747..0a30b0b63f 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -1133,11 +1133,12 @@ declare namespace R { /** * Given a target, this function checks a list for the target and returns a boolean. - * Given a string, this function checks for the string in another string and returns + * Given a string, this function checks for the string in another string or list and returns * a boolean. */ - includes(s: string, string: string): boolean; - includes(s: string): (string: string) => boolean; + + includes(s: string, list: ReadonlyArray | string): boolean; + includes(s: string): (list: ReadonlyArray | string) => boolean; includes(target: T, list: ReadonlyArray): boolean; includes(target: T): (list: ReadonlyArray) => boolean; diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index 232a0d11de..f16b4be612 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -972,7 +972,8 @@ interface Obj { }); () => { - R.includes('ba')('banana'); // => true + R.includes('ba', 'banana'); // => true + R.includes('ma', ['ma', 'ng', 'o']); // => true R.includes('ba', 'kiwi'); // => false R.includes(1)([2, 3, 5, 8]); // => false R.includes(8, [1, 8, 9, 17]); // => true