Fix bisectLeft function declaration

It should match the type signature of `bisectRight()`.
This commit is contained in:
Eddie Antonio Santos
2016-06-20 16:01:25 -06:00
committed by GitHub
parent 4e86472aab
commit af71014144

3
d3/d3.d.ts vendored
View File

@@ -1111,8 +1111,7 @@ declare namespace d3 {
export function deviation(array: number[]): number;
export function deviation<T>(array: T[], accessor: (datum: T, index: number) => number): number;
export function bisectLeft(array: number[], x: number, lo?: number, hi?: number): number;
export function bisectLeft(array: string[], x: string, lo?: number, hi?: number): number;
export function bisectLeft<T>(array: T[], x: T, lo?: number, hi?: number): number;
export var bisect: typeof bisectRight;