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.9.0 to 2.10.0

50

d3-array/index.d.ts

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

// Type definitions for D3JS d3-array module 2.9
// Type definitions for D3JS d3-array module 2.10
// 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.9.1
// Last module patch version validated against: 2.10.0

@@ -427,3 +427,3 @@ // --------------------------------------------------------------------------

/**
* Groups the specified array of values into a Map from key to array of value.
* Groups the specified array of values into an InternMap from key to array of value.
*

@@ -433,5 +433,5 @@ * @param iterable The array to group.

*/
export function group<TObject, TKey>(iterable: Iterable<TObject>, key: (value: TObject) => TKey): Map<TKey, TObject[]>;
export function group<TObject, TKey>(iterable: Iterable<TObject>, key: (value: TObject) => TKey): InternMap<TKey, TObject[]>;
/**
* Groups the specified array of values into a Map from key to array of value.
* Groups the specified array of values into an InternMap from key to array of value.
*

@@ -446,5 +446,5 @@ * @param iterable The array to group.

key2: (value: TObject) => TKey2
): Map<TKey1, Map<TKey2, TObject[]>>;
): InternMap<TKey1, Map<TKey2, TObject[]>>;
/**
* Groups the specified array of values into a Map from key to array of value.
* Groups the specified array of values into an InternMap from key to array of value.
*

@@ -461,3 +461,3 @@ * @param iterable The array to group.

key3: (value: TObject) => TKey3
): Map<TKey1, Map<TKey2, Map<TKey3, TObject[]>>>;
): InternMap<TKey1, Map<TKey2, Map<TKey3, TObject[]>>>;

@@ -507,3 +507,3 @@ /**

*/
export function index<TObject, TKey>(iterable: Iterable<TObject>, key: (value: TObject) => TKey): Map<TKey, TObject>;
export function index<TObject, TKey>(iterable: Iterable<TObject>, key: (value: TObject) => TKey): InternMap<TKey, TObject>;
/**

@@ -520,3 +520,3 @@ * Equivalent to group but returns a unique value per compound key instead of an array, throwing if the key is not unique.

key2: (value: TObject) => TKey2
): Map<TKey1, Map<TKey2, TObject>>;
): InternMap<TKey1, InternMap<TKey2, TObject>>;
/**

@@ -535,3 +535,3 @@ * Equivalent to group but returns a unique value per compound key instead of an array, throwing if the key is not unique.

key3: (value: TObject) => TKey3
): Map<TKey1, Map<TKey2, Map<TKey3, TObject>>>;
): InternMap<TKey1, InternMap<TKey2, InternMap<TKey3, TObject>>>;

@@ -576,3 +576,3 @@ /**

/**
* Groups and reduces the specified array of values into a Map from key to value.
* Groups and reduces the specified array of values into an InternMap from key to value.
*

@@ -587,5 +587,5 @@ * @param iterable The array to group.

key: (value: TObject) => TKey
): Map<TKey, TReduce>;
): InternMap<TKey, TReduce>;
/**
* Groups and reduces the specified array of values into a Map from key to value.
* Groups and reduces the specified array of values into an InternMap from key to value.
*

@@ -602,5 +602,5 @@ * @param iterable The array to group.

key2: (value: TObject) => TKey2
): Map<TKey1, Map<TKey2, TReduce>>;
): InternMap<TKey1, InternMap<TKey2, TReduce>>;
/**
* Groups and reduces the specified array of values into a Map from key to value.
* Groups and reduces the specified array of values into an InternMap from key to value.
*

@@ -619,3 +619,3 @@ * @param iterable The array to group.

key3: (value: TObject) => TKey3
): Map<TKey1, Map<TKey2, Map<TKey3, TReduce>>>;
): InternMap<TKey1, InternMap<TKey2, InternMap<TKey3, TReduce>>>;

@@ -1090,1 +1090,17 @@ /**

export function thresholdSturges(values: ArrayLike<number | undefined>): number; // of type ThresholdCountGenerator
// --------------------------------------------------------------------------------------
// Interning
// --------------------------------------------------------------------------------------
/**
* The InternMap class extends the native JavaScript Map class, allowing Dates and other non-primitive keys by bypassing the SameValueZero algorithm when determining key equality.
*/
export class InternMap<K = any, V = any> extends Map<K, V> {
}
/**
* The InternSet class extends the native JavaScript Set class, allowing Dates and other non-primitive keys by bypassing the SameValueZero algorithm when determining key equality.
*/
export class InternSet<T = any> extends Set<T> {
}
{
"name": "@types/d3-array",
"version": "2.9.0",
"version": "2.10.0",
"description": "TypeScript definitions for D3JS d3-array module",

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

"dependencies": {},
"typesPublisherContentHash": "5e37c7e4cb5ba25736f56a266d1bbba7f9b64b9a3a10bf6c277247fd26fd9ccc",
"typeScriptVersion": "3.4"
"typesPublisherContentHash": "a07277ccb3acf0979ffd73d6d77da9a5c227c1ba831aa8c8fcea8e9e053d8ba3",
"typeScriptVersion": "3.5"
}

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

### Additional Details
* Last updated: Mon, 25 Jan 2021 20:28:35 GMT
* Last updated: Tue, 18 May 2021 17:31:57 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