borisyankov/DefinitelyTyped — pull request #2848 by falsandtru (2014-09-19 03:31:10+00:00)
Title: Support rest arguments of jQuery event handler by optional parameters passed via jQuery trigger method

Thank you for review @vvakame .

**Trace merged request of https://github.com/borisyankov/DefinitelyTyped/pull/1420**

http://api.jquery.com/trigger/

```javascript
'Definition of latest.'
// on(events: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any): JQuery;
' ^^^^^^^^^^^^^^^^'
'Rest arguments is supported only on `on` method for now.'
'Not supported Other.'
// bind(eventType: string, handler: (eventObject: JQueryEventObject) => any): JQuery;
// click(handler: (eventObject: JQueryEventObject) => any): JQuery;
function handler(event, extraParameter){alert()}
$("#foo").on("click", handler); // done
$("#foo").bind("click", handler); // fail
$("#foo").click(handler); // fail

'So I was fix.'
// bind(eventType: string, handler: (eventObject: JQueryEventObject, ...args: any[]) => any) => any): JQuery;
// click(handler: (eventObject: JQueryEventObject, ...args: any[]) => any) => any): JQuery;
```