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.10.0 to 2.11.0

27

d3-array/index.d.ts

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

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

@@ -655,2 +655,20 @@ // --------------------------------------------------------------------------

/**
* Groups the specified iterable of elements according to the specified key function, sorts the groups according to the specified comparator, and then returns an array of keys in sorted order.
* The comparator will be asked to compare two groups a and b and should return a negative value if a should be before b, a positive value if a should be after b, or zero for a partial ordering.
*/
export function groupSort<TObject, TKey>(
iterable: Iterable<TObject>,
comparator: (a: TObject[], b: TObject[]) => number,
key: (value: TObject) => TKey
): TKey[];
/**
* Groups the specified iterable of elements according to the specified key function, sorts the groups according to the specified accessor, and then returns an array of keys in sorted order.
*/
export function groupSort<TObject, TReduce, TKey>(
iterable: Iterable<TObject>,
accessor: (value: TObject[]) => TReduce,
key: (value: TObject) => TKey
): TKey[];
/**
* Returns the number of valid number values (i.e., not null, NaN, or undefined) in the specified iterable; accepts an accessor.

@@ -665,3 +683,3 @@ *

* @param iterable Input array.
* @param accessor Accesor method.
* @param accessor Accessor method.
*/

@@ -897,4 +915,5 @@ export function count<TObject>(

* The accessor is only invoked once per element, and thus may be nondeterministic.
* Multiple accessors may be specified to break ties.
*/
export function sort<T>(iterable: Iterable<T>, accessor: (a: T) => unknown): T[];
export function sort<T>(iterable: Iterable<T>, ...accessors: Array<(a: T) => unknown>): T[];

@@ -901,0 +920,0 @@ // --------------------------------------------------------------------------------------

4

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

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

"dependencies": {},
"typesPublisherContentHash": "a07277ccb3acf0979ffd73d6d77da9a5c227c1ba831aa8c8fcea8e9e053d8ba3",
"typesPublisherContentHash": "55c120b65895a21e3800a1ac7830184ecb428550275676c981c9a8fd5e5d7b0b",
"typeScriptVersion": "3.5"
}

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

### Additional Details
* Last updated: Tue, 18 May 2021 17:31:57 GMT
* Last updated: Wed, 19 May 2021 02:31:48 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