diff --git a/types/ramda/es/isNaN.d.ts b/types/ramda/es/isNaN.d.ts deleted file mode 100644 index 5dbe28177a..0000000000 --- a/types/ramda/es/isNaN.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isNaN } from '../index'; -export default isNaN; diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 6da39358a1..9b9e6bd5c1 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for ramda 0.26 // Project: https://github.com/donnut/typescript-ramda, https://ramdajs.com -// Definitions by: Erwin Poeze +// Definitions by: Scott O'Malley +// Erwin Poeze // Matt DeKrey // Matt Dziuban // Stephen King @@ -131,7 +132,6 @@ /// /// /// -/// /// /// /// @@ -387,7 +387,6 @@ /// /// /// -/// /// /// /// @@ -1640,11 +1639,6 @@ declare namespace R { */ isEmpty(value: any): boolean; - /** - * Returns true if the input value is NaN. - */ - isNaN(x: any): boolean; - /** * Checks if the input value is null or undefined. */ diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index 9d81e42d9b..c8c35cc171 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -477,6 +477,29 @@ interface Obj { R.over(headLens, R.toUpper, ["a", "b", "c"]); // => ['A', 'b', 'c'] }; +() => { + const sampleList = ['a', 'b', 'c', 'd', 'e', 'f']; + + R.move(0, 2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f'] + R.move(-1, 0, sampleList); // => ['f', 'a', 'b', 'c', 'd', 'e'] list rotation + + const moveCurried1 = R.move(0, 2); + moveCurried1(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f'] + + const moveCurried2 = R.move(0); + moveCurried2(2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f'] + + const moveCurried3 = R.move(0); + const moveCurried4 = moveCurried3(2); + moveCurried4(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f'] +}; + +() => { + R.none(Number.isNaN, [1, 2, 3]); // => true + R.none(Number.isNaN, [1, 2, 3, NaN]); // => false + R.none(Number.isNaN, [1, 2, 3, NaN]); // => false +}; + () => { const list = ["foo", "bar", "baz", "quux"]; R.nth(1, list); // => 'bar' diff --git a/types/ramda/src/isNaN.d.ts b/types/ramda/src/isNaN.d.ts deleted file mode 100644 index 5dbe28177a..0000000000 --- a/types/ramda/src/isNaN.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { isNaN } from '../index'; -export default isNaN; diff --git a/types/ramda/test/isNaN-tests.ts b/types/ramda/test/isNaN-tests.ts deleted file mode 100644 index bc802bdbe0..0000000000 --- a/types/ramda/test/isNaN-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -import * as R from 'ramda'; - -() => { - R.isNaN(NaN); // => true - R.isNaN(undefined); // => false - R.isNaN({}); // => false -}; diff --git a/types/ramda/test/none-tests.ts b/types/ramda/test/none-tests.ts index a81f4f2ad8..ce46c357b8 100644 --- a/types/ramda/test/none-tests.ts +++ b/types/ramda/test/none-tests.ts @@ -1,7 +1,7 @@ import * as R from 'ramda'; () => { - R.none(R.isNaN, [1, 2, 3]); // => true - R.none(R.isNaN, [1, 2, 3, NaN]); // => false - R.none(R.isNaN)([1, 2, 3, NaN]); // => false + R.none(Number.isNaN, [1, 2, 3]); // => true + R.none(Number.isNaN, [1, 2, 3, NaN]); // => false + R.none(Number.isNaN)([1, 2, 3, NaN]); // => false }; diff --git a/types/ramda/tsconfig.json b/types/ramda/tsconfig.json index 5033d5bc3f..cf4e5d7120 100644 --- a/types/ramda/tsconfig.json +++ b/types/ramda/tsconfig.json @@ -112,7 +112,6 @@ "test/is-tests.ts", "test/isArrayLike-tests.ts", "test/isEmpty-tests.ts", - "test/isNaN-tests.ts", "test/join-tests.ts", "test/juxt-tests.ts", "test/keys-tests.ts",