mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
ramda#2883: Remove references to R.isNaN (#38740)
* ramda#2883: Remove references to R.isNaN * ramda#2883: Update test * Remove addtional semi-colon * ramda#2883: Resolve merge conflict * ramda#2883: Remove references to R.isNaN
This commit is contained in:
committed by
Armando Aguirre
parent
97af79ffcc
commit
fd3cd621ae
2
types/ramda/es/isNaN.d.ts
vendored
2
types/ramda/es/isNaN.d.ts
vendored
@@ -1,2 +0,0 @@
|
||||
import { isNaN } from '../index';
|
||||
export default isNaN;
|
||||
10
types/ramda/index.d.ts
vendored
10
types/ramda/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
// Type definitions for ramda 0.26
|
||||
// Project: https://github.com/donnut/typescript-ramda, https://ramdajs.com
|
||||
// Definitions by: Erwin Poeze <https://github.com/donnut>
|
||||
// Definitions by: Scott O'Malley <https://github.com/TheHandsomeCoder>
|
||||
// Erwin Poeze <https://github.com/donnut>
|
||||
// Matt DeKrey <https://github.com/mdekrey>
|
||||
// Matt Dziuban <https://github.com/mrdziuban>
|
||||
// Stephen King <https://github.com/sbking>
|
||||
@@ -131,7 +132,6 @@
|
||||
/// <reference path="./es/isArrayLike.d.ts" />
|
||||
/// <reference path="./es/is.d.ts" />
|
||||
/// <reference path="./es/isEmpty.d.ts" />
|
||||
/// <reference path="./es/isNaN.d.ts" />
|
||||
/// <reference path="./es/isNil.d.ts" />
|
||||
/// <reference path="./es/join.d.ts" />
|
||||
/// <reference path="./es/juxt.d.ts" />
|
||||
@@ -387,7 +387,6 @@
|
||||
/// <reference path="./src/isArrayLike.d.ts" />
|
||||
/// <reference path="./src/is.d.ts" />
|
||||
/// <reference path="./src/isEmpty.d.ts" />
|
||||
/// <reference path="./src/isNaN.d.ts" />
|
||||
/// <reference path="./src/isNil.d.ts" />
|
||||
/// <reference path="./src/join.d.ts" />
|
||||
/// <reference path="./src/juxt.d.ts" />
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
@@ -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<string>(0, 2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
R.move<string>(-1, 0, sampleList); // => ['f', 'a', 'b', 'c', 'd', 'e'] list rotation
|
||||
|
||||
const moveCurried1 = R.move(0, 2);
|
||||
moveCurried1<string>(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
|
||||
const moveCurried2 = R.move(0);
|
||||
moveCurried2<string>(2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
|
||||
|
||||
const moveCurried3 = R.move(0);
|
||||
const moveCurried4 = moveCurried3(2);
|
||||
moveCurried4<string>(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'
|
||||
|
||||
2
types/ramda/src/isNaN.d.ts
vendored
2
types/ramda/src/isNaN.d.ts
vendored
@@ -1,2 +0,0 @@
|
||||
import { isNaN } from '../index';
|
||||
export default isNaN;
|
||||
@@ -1,7 +0,0 @@
|
||||
import * as R from 'ramda';
|
||||
|
||||
() => {
|
||||
R.isNaN(NaN); // => true
|
||||
R.isNaN(undefined); // => false
|
||||
R.isNaN({}); // => false
|
||||
};
|
||||
@@ -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
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user