mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[ramda] remove R.isArrayLike (#39084)
This commit is contained in:
parent
90eb4f593a
commit
d8e3ffcb09
2
types/ramda/es/isArrayLike.d.ts
vendored
2
types/ramda/es/isArrayLike.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
import { isArrayLike } from '../index';
|
||||
export default isArrayLike;
|
||||
7
types/ramda/index.d.ts
vendored
7
types/ramda/index.d.ts
vendored
@ -129,7 +129,6 @@
|
||||
/// <reference path="./es/invert.d.ts" />
|
||||
/// <reference path="./es/invertObj.d.ts" />
|
||||
/// <reference path="./es/invoker.d.ts" />
|
||||
/// <reference path="./es/isArrayLike.d.ts" />
|
||||
/// <reference path="./es/is.d.ts" />
|
||||
/// <reference path="./es/isEmpty.d.ts" />
|
||||
/// <reference path="./es/isNil.d.ts" />
|
||||
@ -383,7 +382,6 @@
|
||||
/// <reference path="./src/invert.d.ts" />
|
||||
/// <reference path="./src/invertObj.d.ts" />
|
||||
/// <reference path="./src/invoker.d.ts" />
|
||||
/// <reference path="./src/isArrayLike.d.ts" />
|
||||
/// <reference path="./src/is.d.ts" />
|
||||
/// <reference path="./src/isEmpty.d.ts" />
|
||||
/// <reference path="./src/isNil.d.ts" />
|
||||
@ -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.
|
||||
*/
|
||||
|
||||
@ -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]
|
||||
};
|
||||
|
||||
2
types/ramda/src/isArrayLike.d.ts
vendored
2
types/ramda/src/isArrayLike.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
import { isArrayLike } from '../index';
|
||||
export default isArrayLike;
|
||||
@ -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([]);
|
||||
};
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user