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.4.0 to 2.5.0

36

d3-array/index.d.ts

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

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

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

// Last module patch version validated against: 2.4.0
// Last module patch version validated against: 2.5.1

@@ -253,2 +253,34 @@ // --------------------------------------------------------------------------

/**
* Returns a full precision summation of the given values.
* Although slower, d3.fsum can replace d3.sum wherever greater precision is needed. Uses d3.Adder.
*/
export function fsum<T extends Numeric>(values: Iterable<T | undefined | null>): number;
/**
* Returns a full precision summation of the given values.
* Although slower, d3.fsum can replace d3.sum wherever greater precision is needed. Uses d3.Adder.
*/
export function fsum<T>(
values: Iterable<T>,
accessor: (datum: T, index: number, array: Iterable<T>) => number | undefined | null
): number;
export class Adder {
/**
* Creates a full precision adder for IEEE 754 floating point numbers, setting its initial value to 0.
*/
constructor();
/**
* Adds the specified number to the adder’s current value and returns the adder.
*/
add(number: number): Adder;
/**
* Returns the IEEE 754 double precision representation of the adder’s current value.
* Most useful as the short-hand notation +adder.
*/
valueOf(): number;
}
// --------------------------------------------------------------------------------------

@@ -255,0 +287,0 @@ // Searching Arrays

4

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

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

"dependencies": {},
"typesPublisherContentHash": "84eab84566be27c3703a959b297ff65816f04744271fd2cccf6ce0c5c3d14394",
"typesPublisherContentHash": "0ca2e6f8b3e441baa29f52d6518ccf8b577a88f829f1c262be4cb5a12925d1b5",
"typeScriptVersion": "3.2"
}

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

### Additional Details
* Last updated: Wed, 28 Oct 2020 19:42:23 GMT
* Last updated: Sat, 31 Oct 2020 12:58:25 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