forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ftdomdelegate.d.ts
22 lines (15 loc) · 1004 Bytes
/
ftdomdelegate.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Type definitions for ftdomdelegate
// Project: https://github.com/ftlabs/ftdomdelegate
// Definitions by: Christian Holm Nielsen <https://github.com/dotnetnerd>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare class Delegate
{
constructor(element: HTMLElement);
on(eventType: string, selector: string, handler : (event: Event, targetElement: Element) => void, eventData? : any) : void;
on(eventType: string, selector: (element: Element) => boolean, handler : (event: Event, targetElement: Element) => void, eventData? : any) : void;
on(eventType: string, handler:(event: Event, targetElement: Element) => void, eventData? : any) : void;
off(eventType? : string, selector? : string, handler? : (event: Event, targetElement: Element) => void) : void;
off(eventType? : string, selector?: (element: Element) => boolean, handler? : (event: Event, targetElement: Element) => void) : void;
root(element? : Element) : void;
destroy() : void;
}