diff --git a/types/ramda/es/isArrayLike.d.ts b/types/ramda/es/isArrayLike.d.ts deleted file mode 100644 index 04aa464805..0000000000 --- a/types/ramda/es/isArrayLike.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isArrayLike } from '../index'; -export default isArrayLike; diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index c5a88afac9..c4ea4093a0 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -129,7 +129,6 @@ /// /// /// -/// /// /// /// @@ -383,7 +382,6 @@ /// /// /// -/// /// /// /// @@ -1627,11 +1625,6 @@ declare namespace R { is(ctor: any, val: any): boolean; is(ctor: any): (val: any) => boolean; - /** - * Tests whether or not an object is similar to an array. - */ - isArrayLike(val: any): boolean; - /** * Reports whether the list has zero elements. */ diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index e7d2bcb6bf..e0eee7b9ba 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -106,7 +106,7 @@ class F2 { () => { // coerceArray :: (a|[a]) -> [a] - const coerceArray = R.unless(R.isArrayLike, R.of); + const coerceArray = R.unless(R.is(Array), R.of); const a: number[] = coerceArray([1, 2, 3]); // => [1, 2, 3] const b: number[] = coerceArray(1); // => [1] }; diff --git a/types/ramda/src/isArrayLike.d.ts b/types/ramda/src/isArrayLike.d.ts deleted file mode 100644 index 04aa464805..0000000000 --- a/types/ramda/src/isArrayLike.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isArrayLike } from '../index'; -export default isArrayLike; diff --git a/types/ramda/test/isArrayLike-tests.ts b/types/ramda/test/isArrayLike-tests.ts deleted file mode 100644 index a8dbffa873..0000000000 --- a/types/ramda/test/isArrayLike-tests.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as R from 'ramda'; - -() => { - let x: boolean; - x = R.isArrayLike('a'); - x = R.isArrayLike([1, 2, 3]); - x = R.isArrayLike([]); -}; diff --git a/types/ramda/tsconfig.json b/types/ramda/tsconfig.json index cf4e5d7120..ac0aa874fb 100644 --- a/types/ramda/tsconfig.json +++ b/types/ramda/tsconfig.json @@ -110,7 +110,6 @@ "test/invertObj-tests.ts", "test/invoker-tests.ts", "test/is-tests.ts", - "test/isArrayLike-tests.ts", "test/isEmpty-tests.ts", "test/join-tests.ts", "test/juxt-tests.ts",