@types/d3-array
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -11,3 +11,3 @@ // Type definitions for D3JS d3-array module 3.0 | ||
// Last module patch version validated against: 3.0.1 | ||
// Last module patch version validated against: 3.1.0 | ||
@@ -239,2 +239,20 @@ // -------------------------------------------------------------------------- | ||
/** | ||
* Returns an array with the rank of each value in the iterable, i.e. the index of the value when the iterable is sorted. | ||
* Nullish values are sorted to the end and ranked NaN. | ||
* An optional accessor function may be specified, which is equivalent to calling array.map(accessor) before computing the ranks. | ||
* Ties (equivalent values) all get the same rank, defined as the first time the value is found. | ||
*/ | ||
export function rank(iterable: Iterable<Numeric | undefined | null>): Float64Array; | ||
/** | ||
* Returns an array with the rank of each value in the iterable, i.e. the index of the value when the iterable is sorted. | ||
* Nullish values are sorted to the end and ranked NaN. | ||
* An optional accessor function may be specified, which is equivalent to calling array.map(accessor) before computing the ranks. | ||
* Ties (equivalent values) all get the same rank, defined as the first time the value is found. | ||
*/ | ||
export function rank<T>( | ||
iterable: Iterable<T>, | ||
accessor: (datum: T, index: number, array: Iterable<T>) => number | undefined | null | ||
): Float64Array; | ||
/** | ||
* Returns an unbiased estimator of the population variance of the given iterable of numbers using Welford’s algorithm. | ||
@@ -1006,17 +1024,17 @@ * If the iterable has fewer than two numbers, returns undefined. | ||
/** | ||
* Returns a new Set containing every value in iterable that is not in any of the others iterables. | ||
* Returns a new InternSet containing every value in iterable that is not in any of the others iterables. | ||
*/ | ||
export function difference<T>(iterable: Iterable<T>, ...others: Array<Iterable<T>>): Set<T>; | ||
export function difference<T>(iterable: Iterable<T>, ...others: Array<Iterable<T>>): InternSet<T>; | ||
/** | ||
* Returns a new Set containing every (distinct) value that appears in any of the given iterables. | ||
* The order of values in the returned Set is based on their first occurrence in the given iterables. | ||
* Returns a new InternSet containing every (distinct) value that appears in any of the given iterables. | ||
* The order of values in the returned set is based on their first occurrence in the given iterables. | ||
*/ | ||
export function union<T>(...iterables: Array<Iterable<T>>): Set<T>; | ||
export function union<T>(...iterables: Array<Iterable<T>>): InternSet<T>; | ||
/** | ||
* Returns a new Set containing every (distinct) value that appears in all of the given iterables. | ||
* The order of values in the returned Set is based on their first occurrence in the given iterables. | ||
* Returns a new InternSet containing every (distinct) value that appears in all of the given iterables. | ||
* The order of values in the returned set is based on their first occurrence in the given iterables. | ||
*/ | ||
export function intersection<T>(...iterables: Array<Iterable<T>>): Set<T>; | ||
export function intersection<T>(...iterables: Array<Iterable<T>>): InternSet<T>; | ||
@@ -1023,0 +1041,0 @@ /** |
{ | ||
"name": "@types/d3-array", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"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": "e2ff60bfe49af0826c4dba32a9b1f676f9fa249eeb4e996180fa274f57d7ed13", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "500505ca2f93e80860b11f653cddf19cc9d9ec7781b4a50badccc7a25a4141c2", | ||
"typeScriptVersion": "3.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 25 Jun 2021 17:01:17 GMT | ||
* Last updated: Tue, 19 Oct 2021 20:01:24 GMT | ||
* Dependencies: none | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54930
1085