diff --git a/d3/d3.d.ts b/d3/d3.d.ts index b35d898522..1da10a78ab 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -1078,11 +1078,16 @@ declare namespace d3 { * Return the min and max simultaneously. */ export function extent(array: T[], accessor: (datum: T, index: number) => string): [string, string]; + + /** + * Return the min and max simultaneously. + */ + export function extent(array: T[], accessor: (datum: T, index: number) => Date): [Date, Date]; /** * Return the min and max simultaneously. */ - export function extent(array: U[], accessor: (datum: T, index: number) => U): [U | Primitive, U | Primitive]; + export function extent(array: T[], accessor: (datum: T, index: number) => U): [U | Primitive, U | Primitive]; /** * Compute the sum of an array of numbers.