Update signature of call target for selection.call

Per https://github.com/mbostock/d3/wiki/Selections#call
This commit is contained in:
Audrey
2014-05-22 11:51:11 -04:00
parent 73a3d72238
commit 2cce02bc82

2
d3/d3.d.ts vendored
View File

@@ -767,7 +767,7 @@ declare module D3 {
//(filter: string): UpdateSelection;
};
call(callback: (selection: Selection) => void ): Selection;
call(callback: (selection: Selection, ...args: any[]) => void, ...args: any[]): Selection;
each(eachFunction: (data: any, index: number) => any): Selection;
on: {
(type: string): (data: any, index: number) => any;