From 67fe66dba531815fbc732ef4684269d4c4ae6c74 Mon Sep 17 00:00:00 2001 From: johno Date: Fri, 14 Dec 2018 09:42:36 -0600 Subject: [PATCH] last case --- types/ramda/index.d.ts | 7 ++++--- types/ramda/ramda-tests.ts | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) 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