From 11e08e1d4ea877da0f94be4d4f082ceeaf90971d Mon Sep 17 00:00:00 2001 From: areel Date: Thu, 5 Sep 2013 18:38:15 +0100 Subject: [PATCH] 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 (cb1b62852708536407d535aae31af77fef68cdd4) --- backbone/backbone.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index 1a6f3d8fe0..e2579c407f 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -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;