mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-06 10:10:08 +00:00
Merge pull request #9852 from leon/master
D3 - extent does not work with dates
This commit is contained in:
7
d3/d3.d.ts
vendored
7
d3/d3.d.ts
vendored
@@ -1078,11 +1078,16 @@ declare namespace d3 {
|
||||
* Return the min and max simultaneously.
|
||||
*/
|
||||
export function extent<T>(array: T[], accessor: (datum: T, index: number) => string): [string, string];
|
||||
|
||||
/**
|
||||
* Return the min and max simultaneously.
|
||||
*/
|
||||
export function extent<T>(array: T[], accessor: (datum: T, index: number) => Date): [Date, Date];
|
||||
|
||||
/**
|
||||
* Return the min and max simultaneously.
|
||||
*/
|
||||
export function extent<T, U extends Numeric>(array: U[], accessor: (datum: T, index: number) => U): [U | Primitive, U | Primitive];
|
||||
export function extent<T, U extends Numeric>(array: T[], accessor: (datum: T, index: number) => U): [U | Primitive, U | Primitive];
|
||||
|
||||
/**
|
||||
* Compute the sum of an array of numbers.
|
||||
|
||||
Reference in New Issue
Block a user