Liberalize type of d3.event. Addresses #4590.

This commit is contained in:
Alex Ford
2015-06-11 16:09:10 -04:00
parent 066819c65f
commit cf09bf76ce
2 changed files with 23 additions and 4 deletions
Vendored
+7 -1
View File
@@ -918,7 +918,13 @@ declare module d3 {
}
/**
* The current event's value. Use this variable in a handler registered with selection.on.
* Interface for any and all d3 events.
*/
interface Event extends KeyboardEvent, MouseEvent {
}
/**
* The current event's value. Use this variable in a handler registered with `selection.on`.
*/
export var event: Event;