{"action":"created","issue":{"url":"https://api.github.com/repos/borisyankov/DefinitelyTyped/issues/4778","labels_url":"https://api.github.com/repos/borisyankov/DefinitelyTyped/issues/4778/labels{/name}","comments_url":"https://api.github.com/repos/borisyankov/DefinitelyTyped/issues/4778/comments","events_url":"https://api.github.com/repos/borisyankov/DefinitelyTyped/issues/4778/events","html_url":"https://github.com/borisyankov/DefinitelyTyped/issues/4778","id":92102023,"number":4778,"title":"Add new JQuery definition \"bind\" with variable arguments for callback function","user":{"login":"cchet","id":2004943,"avatar_url":"https://avatars.githubusercontent.com/u/2004943?v=3","gravatar_id":"","url":"https://api.github.com/users/cchet","html_url":"https://github.com/cchet","followers_url":"https://api.github.com/users/cchet/followers","following_url":"https://api.github.com/users/cchet/following{/other_user}","gists_url":"https://api.github.com/users/cchet/gists{/gist_id}","starred_url":"https://api.github.com/users/cchet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cchet/subscriptions","organizations_url":"https://api.github.com/users/cchet/orgs","repos_url":"https://api.github.com/users/cchet/repos","events_url":"https://api.github.com/users/cchet/events{/privacy}","received_events_url":"https://api.github.com/users/cchet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-30T14:02:01Z","updated_at":"2015-08-03T14:51:29Z","closed_at":null,"body":"I am currently giving TypeScript a try and trying to implement my first TypeScript with jqplot.\r\nJQPlot provides an data point click event which gets applied like this:\r\n```\r\n$('#'+id).bind('jqplotDataClick', function (ev, seriesIndex, pointIndex, data) { ... }\r\n```\r\nThe problem now is that the definitions do not allow the signature of the callback function.\r\nTherefore I added the following to the jquery.d.ts.\r\n\r\n```\r\n    bind(eventType: string, handler: (eventObject: JQueryEventObject, ...params: any[]) => any): JQuery;\r\n```\r\nwhich as far as I understand allows any signature of the callback function.\r\n\r\nIs this a missing definition or am I am I mistaking ? "},"comment":{"url":"https://api.github.com/repos/borisyankov/DefinitelyTyped/issues/comments/127267488","html_url":"https://github.com/borisyankov/DefinitelyTyped/issues/4778#issuecomment-127267488","issue_url":"https://api.github.com/repos/borisyankov/DefinitelyTyped/issues/4778","id":127267488,"user":{"login":"omeszar","id":3874772,"avatar_url":"https://avatars.githubusercontent.com/u/3874772?v=3","gravatar_id":"","url":"https://api.github.com/users/omeszar","html_url":"https://github.com/omeszar","followers_url":"https://api.github.com/users/omeszar/followers","following_url":"https://api.github.com/users/omeszar/following{/other_user}","gists_url":"https://api.github.com/users/omeszar/gists{/gist_id}","starred_url":"https://api.github.com/users/omeszar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omeszar/subscriptions","organizations_url":"https://api.github.com/users/omeszar/orgs","repos_url":"https://api.github.com/users/omeszar/repos","events_url":"https://api.github.com/users/omeszar/events{/privacy}","received_events_url":"https://api.github.com/users/omeszar/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T14:51:29Z","updated_at":"2015-08-03T14:51:29Z","body":"For me, I am not using jqplot. Instead I am using flow. Since it appears to be used in more than one library, maybe it should be in Jquery.d.ts??"}}