element-resize-event: Add definition for the unbind method (#16202)

* Match version 2.0.7

* Match version 2.0.7

* Match version 2.0.7

* update library version
This commit is contained in:
plgregoire
2017-05-03 16:12:01 -04:00
committed by Mohamed Hegazy
parent f5d1b56f76
commit d48daa410e
2 changed files with 9 additions and 7 deletions

View File

@@ -2,6 +2,6 @@
import ere = require("element-resize-event");
var domNode: Element = null;
ere(domNode, (): void => {
});
ere(domNode, (): void => {});
ere.unbind(domNode, (): void => {});

View File

@@ -1,8 +1,10 @@
// Type definitions for element-resize-event 1.0.1
// Type definitions for element-resize-event 2.0.9
// Project: https://github.com/KyleAMathews/element-resize-event
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>, Pierre-Luc Gregoire <https://github.com/plgregoire>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function elementResizeEvent(domNode: Element, callback: () => void): void;
export = elementResizeEvent;
export = element_resize_event;
declare function element_resize_event(omNode: Element, callback: () => void): void;
declare namespace element_resize_event {
function unbind(omNode: Element, callback: () => void): void;
}