mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
fix d3 bisector type signature
This commit is contained in:
1 parent
6387999eb8
commit
1740c40614
1 file changed
+2
-2
Vendored
+2
-2
@@ -1090,8 +1090,8 @@ declare module d3 {
|
||||
export function bisectRight<T>(array: T[], x: T, lo?: number, hi?: number): number;
|
||||
|
||||
export function bisector<T, U>(accessor: (x: T) => U): {
|
||||
left: (array: T[], x: T, lo?: number, hi?: number) => number;
|
||||
right: (array: T[], x: T, lo?: number, hi?: number) => number;
|
||||
left: (array: T[], x: U, lo?: number, hi?: number) => number;
|
||||
right: (array: T[], x: U, lo?: number, hi?: number) => number;
|
||||
}
|
||||
|
||||
export function bisector<T, U>(comparator: (a: T, b: U) => number): {
|
||||
|
||||
Reference in new issue
Block a user