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.5.0 to 2.5.1

78

d3-array/index.d.ts

@@ -365,2 +365,3 @@ // Type definitions for D3JS d3-array module 2.5

right(array: ArrayLike<T>, x: U, lo?: number, hi?: number): number;
center(array: ArrayLike<T>, x: U, lo?: number, hi?: number): number;
}

@@ -424,2 +425,3 @@

* Groups the specified array of values into a Map from key to array of value.
*
* @param iterable The array to group.

@@ -431,2 +433,3 @@ * @param key The key function.

* Groups the specified array of values into a Map from key to array of value.
*
* @param iterable The array to group.

@@ -443,2 +446,3 @@ * @param key1 The first key function.

* Groups the specified array of values into a Map from key to array of value.
*
* @param iterable The array to group.

@@ -458,2 +462,3 @@ * @param key1 The first key function.

* Equivalent to group, but returns nested arrays instead of nested maps.
*
* @param iterable The array to group.

@@ -468,2 +473,3 @@ * @param key The key function.

* Equivalent to group, but returns nested arrays instead of nested maps.
*
* @param iterable The array to group.

@@ -480,2 +486,3 @@ * @param key1 The first key function.

* Equivalent to group, but returns nested arrays instead of nested maps.
*
* @param iterable The array to group.

@@ -494,2 +501,73 @@ * @param key1 The first key function.

/**
* Equivalent to group but returns a unique value per compound key instead of an array, throwing if the key is not unique.
*
* @param iterable The array to group.
* @param key The key function.
*/
export function index<TObject, TKey>(iterable: Iterable<TObject>, key: (value: TObject) => TKey): Map<TKey, TObject>;
/**
* Equivalent to group but returns a unique value per compound key instead of an array, throwing if the key is not unique.
*
* @param iterable The array to group.
* @param key1 The first key function.
* @param key2 The second key function.
*/
export function index<TObject, TKey1, TKey2>(
iterable: Iterable<TObject>,
key1: (value: TObject) => TKey1,
key2: (value: TObject) => TKey2
): Map<TKey1, Map<TKey2, TObject>>;
/**
* Equivalent to group but returns a unique value per compound key instead of an array, throwing if the key is not unique.
*
* @param iterable The array to group.
* @param key1 The first key function.
* @param key2 The second key function.
* @param key3 The third key function.
*/
export function index<TObject, TKey1, TKey2, TKey3>(
iterable: Iterable<TObject>,
key1: (value: TObject) => TKey1,
key2: (value: TObject) => TKey2,
key3: (value: TObject) => TKey3
): Map<TKey1, Map<TKey2, Map<TKey3, TObject>>>;
/**
* Equivalent to index, but returns nested arrays instead of nested maps.
*
* @param iterable The array to group.
* @param key The key function.
*/
export function indexes<TObject, TKey>(
iterable: Iterable<TObject>,
key: (value: TObject) => TKey
): Array<[TKey, TObject]>;
/**
* Equivalent to index, but returns nested arrays instead of nested maps.
*
* @param iterable The array to group.
* @param key1 The first key function.
* @param key2 The second key function.
*/
export function indexes<TObject, TKey1, TKey2>(
iterable: Iterable<TObject>,
key1: (value: TObject) => TKey1,
key2: (value: TObject) => TKey2
): Array<[TKey1, Array<[TKey2, TObject]>]>;
/**
* Equivalent to index, but returns nested arrays instead of nested maps.
*
* @param iterable The array to group.
* @param key1 The first key function.
* @param key2 The second key function.
* @param key3 The third key function.
*/
export function indexes<TObject, TKey1, TKey2, TKey3>(
iterable: Iterable<TObject>,
key1: (value: TObject) => TKey1,
key2: (value: TObject) => TKey2,
key3: (value: TObject) => TKey3
): Array<[TKey1, Array<[TKey2, Array<[TKey3, TObject]>]>]>;
/**
* Groups and reduces the specified array of values into a Map from key to value.

@@ -496,0 +574,0 @@ *

4

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

@@ -47,4 +47,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "0ca2e6f8b3e441baa29f52d6518ccf8b577a88f829f1c262be4cb5a12925d1b5",
"typesPublisherContentHash": "881516424b23ac25e05567bd44826ec5492d0d90888f8e43423b16f98b4c1b35",
"typeScriptVersion": "3.2"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Sat, 31 Oct 2020 12:58:25 GMT
* Last updated: Tue, 03 Nov 2020 02:40:51 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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