Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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 1.2.9 to 1.2.10

100

d3-array v1.2/index.d.ts

@@ -47,3 +47,6 @@ // Type definitions for D3JS d3-array module 1.2

*/
export function max<T>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => string | undefined | null): string | undefined;
export function max<T>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => string | undefined | null,
): string | undefined;

@@ -53,3 +56,6 @@ /**

*/
export function max<T, U extends Numeric>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => U | undefined | null): U | undefined;
export function max<T, U extends Numeric>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => U | undefined | null,
): U | undefined;

@@ -69,3 +75,6 @@ /**

*/
export function min<T>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => string | undefined | null): string | undefined;
export function min<T>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => string | undefined | null,
): string | undefined;

@@ -75,3 +84,6 @@ /**

*/
export function min<T, U extends Numeric>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => U | undefined | null): U | undefined;
export function min<T, U extends Numeric>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => U | undefined | null,
): U | undefined;

@@ -91,3 +103,6 @@ /**

*/
export function extent<T>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => string | undefined | null): [string, string] | [undefined, undefined];
export function extent<T>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => string | undefined | null,
): [string, string] | [undefined, undefined];

@@ -97,3 +112,6 @@ /**

*/
export function extent<T, U extends Numeric>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => U | undefined | null): [U, U] | [undefined, undefined];
export function extent<T, U extends Numeric>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => U | undefined | null,
): [U, U] | [undefined, undefined];

@@ -108,3 +126,6 @@ /**

*/
export function mean<T>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => number | undefined | null): number | undefined;
export function mean<T>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => number | undefined | null,
): number | undefined;

@@ -119,3 +140,6 @@ /**

*/
export function median<T>(array: ArrayLike<T>, accessor: (element: T, i: number, array: ArrayLike<T>) => number | undefined | null): number | undefined;
export function median<T>(
array: ArrayLike<T>,
accessor: (element: T, i: number, array: ArrayLike<T>) => number | undefined | null,
): number | undefined;

@@ -127,3 +151,7 @@ /**

export function quantile<T>(array: ArrayLike<T>, p: number, accessor: (element: T, i: number, array: ArrayLike<T>) => number | undefined | null): number | undefined;
export function quantile<T>(
array: ArrayLike<T>,
p: number,
accessor: (element: T, i: number, array: ArrayLike<T>) => number | undefined | null,
): number | undefined;

@@ -138,3 +166,6 @@ /**

*/
export function sum<T>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => number | undefined | null): number;
export function sum<T>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => number | undefined | null,
): number;

@@ -150,3 +181,6 @@ /**

*/
export function deviation<T>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => number | undefined | null): number | undefined;
export function deviation<T>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => number | undefined | null,
): number | undefined;

@@ -162,3 +196,6 @@ /**

*/
export function variance<T>(array: ArrayLike<T>, accessor: (datum: T, index: number, array: ArrayLike<T>) => number | undefined | null): number | undefined;
export function variance<T>(
array: ArrayLike<T>,
accessor: (datum: T, index: number, array: ArrayLike<T>) => number | undefined | null,
): number | undefined;

@@ -226,3 +263,9 @@ // --------------------------------------------------------------------------------------

*/
export function quickselect<T>(array: ArrayLike<T>, k: number, left: number, right: number, compare: (a: Primitive | undefined, b: Primitive | undefined) => number): T[];
export function quickselect<T>(
array: ArrayLike<T>,
k: number,
left: number,
right: number,
compare: (a: Primitive | undefined, b: Primitive | undefined) => number,
): T[];

@@ -259,3 +302,7 @@ // NB. this is limited to primitive values due to D3's use of the <, >, and >= operators. Results get weird for object instances.

*/
export function rollup<TObject, TKey, TReduce>(a: ArrayLike<TObject>, reduce: (value: TObject[]) => TReduce, key: (value: TObject) => TKey): Map<TKey, TReduce>;
export function rollup<TObject, TKey, TReduce>(
a: ArrayLike<TObject>,
reduce: (value: TObject[]) => TReduce,
key: (value: TObject) => TKey,
): Map<TKey, TReduce>;

@@ -409,4 +456,7 @@ /**

*/
export type ThresholdCountGenerator<Value extends number | undefined = number | undefined> =
(values: ArrayLike<Value>, min: number, max: number) => number;
export type ThresholdCountGenerator<Value extends number | undefined = number | undefined> = (
values: ArrayLike<Value>,
min: number,
max: number,
) => number;

@@ -416,4 +466,7 @@ /**

*/
export type ThresholdNumberArrayGenerator<Value extends number | undefined> =
(values: ArrayLike<Value>, min: number, max: number) => Value[];
export type ThresholdNumberArrayGenerator<Value extends number | undefined> = (
values: ArrayLike<Value>,
min: number,
max: number,
) => Value[];

@@ -423,4 +476,7 @@ /**

*/
export type ThresholdDateArrayGenerator<Value extends Date | undefined> =
(values: ArrayLike<Value>, min: Date, max: Date) => Value[];
export type ThresholdDateArrayGenerator<Value extends Date | undefined> = (
values: ArrayLike<Value>,
min: Date,
max: Date,
) => Value[];

@@ -494,3 +550,5 @@ /**

export interface HistogramGeneratorNumber<Datum, Value extends number | undefined> extends HistogramCommon<Datum, Value> {
export interface HistogramGeneratorNumber<Datum, Value extends number | undefined>
extends HistogramCommon<Datum, Value>
{
domain(): (values: ArrayLike<Value>) => [number, number] | [undefined, undefined];

@@ -497,0 +555,0 @@ domain(domain: [number, number]): this;

{
"name": "@types/d3-array",
"version": "1.2.9",
"version": "1.2.10",
"description": "TypeScript definitions for D3JS d3-array module",

@@ -48,4 +48,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-array",

"dependencies": {},
"typesPublisherContentHash": "548677321160290bd4713af3e1edda8ad3c8b57c147f848791d29cb7258c64c9",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "c474e49806347ec670f88d759d8ff9f912dc800f914a999166c7f2fd037ad881",
"typeScriptVersion": "4.5"
}

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

### Additional Details
* Last updated: Sat, 26 Jun 2021 11:31:26 GMT
* Last updated: Fri, 22 Sep 2023 20:29:40 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