mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-19 16:49:45 +08:00
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:
committed by
Mohamed Hegazy
parent
f5d1b56f76
commit
d48daa410e
@@ -2,6 +2,6 @@
|
||||
import ere = require("element-resize-event");
|
||||
|
||||
var domNode: Element = null;
|
||||
ere(domNode, (): void => {
|
||||
});
|
||||
ere(domNode, (): void => {});
|
||||
ere.unbind(domNode, (): void => {});
|
||||
|
||||
|
||||
12
types/element-resize-event/index.d.ts
vendored
12
types/element-resize-event/index.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user