mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-20 21:12:38 +08:00
Make IObservable.off() args optional in fabricjs.d.ts
As specified in the [fabric.js documentation](http://fabricjs.com/docs/fabric.Observable.html#off), `IObservable.off()` accepts two optional arguments.
This commit is contained in:
2
fabricjs/fabricjs.d.ts
vendored
2
fabricjs/fabricjs.d.ts
vendored
@@ -345,7 +345,7 @@ declare module fabric {
|
||||
* @param eventName Event name (eg. 'after:render') or object with key/value pairs (eg. {'after:render': handler, 'selection:cleared': handler})
|
||||
* @param handler Function to be deleted from EventListeners
|
||||
*/
|
||||
off(eventName: string|any, handler: (e: IEvent) => any): T;
|
||||
off(eventName?: string|any, handler?: (e: IEvent) => any): T;
|
||||
}
|
||||
|
||||
// animation mixin
|
||||
|
||||
Reference in New Issue
Block a user