Skip to content

Instantly share code, notes, and snippets.

@KennethanCeyer
Created March 10, 2017 07:45
Show Gist options
  • Save KennethanCeyer/5f609903a644221e4c1326e11d0b2d37 to your computer and use it in GitHub Desktop.
Save KennethanCeyer/5f609903a644221e4c1326e11d0b2d37 to your computer and use it in GitHub Desktop.
Typings for multiple parameters for jQuery event binder functions.
declare interface JQuery {
bind(eventType: string, handler: (...parameters: any[]) => void): JQuery;
on(eventType: string, handler: (...parameters: any[]) => void): JQuery;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment