mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Fix bisectLeft function declaration
It should match the type signature of `bisectRight()`.
This commit is contained in:
committed by
GitHub
parent
4e86472aab
commit
af71014144
3
d3/d3.d.ts
vendored
3
d3/d3.d.ts
vendored
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user