mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-24 11:29:30 +08:00
If eventName is an instance of an event map e.g '{change:action}' then callback is not required. So callback should be marked as optional. Related to earlier commit (cb1b628527)
This commit is contained in:
Vendored
+1
-1
@@ -67,7 +67,7 @@ declare module Backbone {
|
||||
}
|
||||
|
||||
class Events {
|
||||
on(eventName: any, callback: (...args: any[]) => void , context?: any): any;
|
||||
on(eventName: any, callback?: (...args: any[]) => void , context?: any): any;
|
||||
off(eventName?: string, callback?: (...args: any[]) => void , context?: any): any;
|
||||
trigger(eventName: string, ...args: any[]): any;
|
||||
bind(eventName: string, callback: (...args: any[]) => void , context?: any): any;
|
||||
|
||||
Reference in New Issue
Block a user