Socket
Socket
Sign inDemoInstall

@types/d3-array

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/d3-array - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

124

d3-array/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for D3JS d3-array module 2.0
// Type definitions for D3JS d3-array module 2.1
// Project: https://github.com/d3/d3-array, https://d3js.org/d3-array

@@ -11,3 +11,3 @@ // Definitions by: Alex Ford <https://github.com/gustavderdrache>

// Last module patch version validated against: 2.0.3
// Last module patch version validated against: 2.1.0

@@ -35,2 +35,36 @@ // --------------------------------------------------------------------------

/**
* Return the minimum value in the array using natural order.
*/
export function min(array: Iterable<string>): string | undefined;
/**
* Return the minimum value in the array using natural order.
*/
export function min<T extends Numeric>(array: Iterable<T>): T | undefined;
/**
* Return the minimum value in the array using natural order.
*/
export function min<T>(array: Iterable<T>, accessor: (datum: T, index: number, array: Iterable<T>) => string | undefined | null): string | undefined;
/**
* Return the minimum value in the array using natural order.
*/
export function min<T, U extends Numeric>(array: Iterable<T>, accessor: (datum: T, index: number, array: Iterable<T>) => U | undefined | null): U | undefined;
/**
* Return the index of the minimum value in the array using natural order.
*/
export function minIndex<T>(array: Iterable<T>): number ;
/**
* Return the index of the minimum value in the array using natural order and a projection function to map values.
*/
export function minIndex<TDatum, U>(array: Iterable<TDatum>, accessor: (datum: TDatum, index: number, array: Iterable<TDatum>) => U | undefined | null): number ;
/**
* Return the index of the minimum value in the array using natural order.
*/
export function minIndex<T>(array: Iterable<T>): number ;
/**
* Return the maximum value in the array of strings using natural order.

@@ -56,22 +90,12 @@ */

/**
* Return the minimum value in the array using natural order.
* Return the index of the maximum value in the array using natural order.
*/
export function min(array: Iterable<string>): string | undefined;
export function maxIndex<T>(array: Iterable<T>): number ;
/**
* Return the minimum value in the array using natural order.
* Return the index of the maximum value in the array using natural order and a projection function to map values.
*/
export function min<T extends Numeric>(array: Iterable<T>): T | undefined;
export function maxIndex<TDatum, U>(array: Iterable<TDatum>, accessor: (datum: TDatum, index: number, array: Iterable<TDatum>) => U | undefined | null): number ;
/**
* Return the minimum value in the array using natural order.
*/
export function min<T>(array: Iterable<T>, accessor: (datum: T, index: number, array: Iterable<T>) => string | undefined | null): string | undefined;
/**
* Return the minimum value in the array using natural order.
*/
export function min<T, U extends Numeric>(array: Iterable<T>, accessor: (datum: T, index: number, array: Iterable<T>) => U | undefined | null): U | undefined;
/**
* Return the min and max simultaneously.

@@ -159,5 +183,42 @@ */

/**
* @deprecated Use leastIndex instead.
*/
export function scan(array: Iterable<number>, comparator?: (a: number, b: number) => number): number | undefined;
/**
* @deprecated Use leastIndex instead.
*/
export function scan<T>(array: Iterable<T>, comparator: (a: T, b: T) => number): number | undefined;
/**
* Returns the least element of the specified iterable.
*/
export function least<T>(array: Iterable<T>): T | undefined;
/**
* Returns the least element of the specified iterable according to the specified comparator.
*/
export function least<T>(array: Iterable<T>, comparator: (a: T, b: T) => number): T | undefined;
/**
* Returns the least element of the specified iterable according to the specified accessor.
*/
export function least<T, U>(array: Iterable<T>, accessor: (a: T) => U): T | undefined;
/**
* Returns the index of the least element of the specified iterable according to the specified comparator.
*/
export function leastIndex<T>(array: Iterable<T>): number | undefined;
/**
* Returns the index of the least element of the specified iterable according to the specified comparator.
*/
export function leastIndex<T>(array: Iterable<T>, comparator: (a: T, b: T) => number): number | undefined;
/**
* Returns the index of the least element of the specified iterable according to the specified accessor.
*/
export function leastIndex<T, U>(array: Iterable<T>, accessor: (a: T) => U): number | undefined;
export function bisectLeft(array: ArrayLike<number>, x: number, lo?: number, hi?: number): number;

@@ -252,2 +313,16 @@ export function bisectLeft(array: ArrayLike<string>, x: string, lo?: number, hi?: number): number;

/**
* Returns the number of valid number values (i.e., not null, NaN, or undefined) in the specified iterable; accepts an accessor.
*
* @param a Input array.
*/
export function count<TObject>(a: Iterable<TObject>): number;
/**
* Returns the number of valid number values (i.e., not null, NaN, or undefined) in the specified iterable; accepts an accessor.
*
* @param a Input array.
* @param accessor Accesor method.
*/
export function count<TObject>(a: Iterable<TObject>, accessor: (a: TObject, b: TObject) => number | null | undefined): number;
/**
* Returns the Cartesian product of the two arrays a and b.

@@ -300,3 +375,3 @@ * For each element i in the specified array a and each element j in the specified array b, in order,

*/
export function permute<T>(array: { [key: number]: T }, keys: ArrayLike<number>): T[];
export function permute<T>(array: { [key: number]: T; }, keys: ArrayLike<number>): T[];

@@ -505,6 +580,21 @@ /**

/**
* @deprecated. Use bin instead.
*/
export function histogram(): HistogramGeneratorNumber<number, number>;
/**
* @deprecated Use bin instead.
*/
export function histogram<Datum, Value extends number | undefined>(): HistogramGeneratorNumber<Datum, Value>;
/**
* @deprecated Use bin instead.
*/
export function histogram<Datum, Value extends Date | undefined>(): HistogramGeneratorDate<Datum, Value>;
export function bin(): HistogramGeneratorNumber<number, number>;
export function bin<Datum, Value extends number | undefined>(): HistogramGeneratorNumber<Datum, Value>;
export function bin<Datum, Value extends Date | undefined>(): HistogramGeneratorDate<Datum, Value>;
// --------------------------------------------------------------------------------------

@@ -511,0 +601,0 @@ // Histogram Thresholds

8

d3-array/package.json
{
"name": "@types/d3-array",
"version": "2.0.0",
"version": "2.1.0",
"description": "TypeScript definitions for D3JS d3-array module",

@@ -34,3 +34,3 @@ "license": "MIT",

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -43,4 +43,4 @@ "type": "git",

"dependencies": {},
"typesPublisherContentHash": "ee5e70bc5faa038f317b93cea94776fa6c3e81a3a8a52d01e3931ba49b12271b",
"typeScriptVersion": "2.3"
"typesPublisherContentHash": "450fe2bfa2e80b4e396121246852bbfd8223039624159dddad90e8b8f8cdbe60",
"typeScriptVersion": "3.2"
}

@@ -5,9 +5,9 @@ # Installation

# Summary
This package contains type definitions for D3JS d3-array module ( https://github.com/d3/d3-array ).
This package contains type definitions for D3JS d3-array module (https://github.com/d3/d3-array).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-array
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-array.
Additional Details
* Last updated: Wed, 03 Apr 2019 18:23:30 GMT
### Additional Details
* Last updated: Fri, 09 Oct 2020 06:51:10 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Alex Ford <https://github.com/gustavderdrache>, Boris Yankov <https://github.com/borisyankov>, Tom Wanzek <https://github.com/tomwanzek>, denisname <https://github.com/denisname>, Hugues Stefanski <https://github.com/ledragon>.
These definitions were written by [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov), [Tom Wanzek](https://github.com/tomwanzek), [denisname](https://github.com/denisname), and [Hugues Stefanski](https://github.com/ledragon).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc