UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

22 lines (15 loc) 992 B
// Type definitions for ftdomdelegate // Project: https://github.com/ftlabs/ftdomdelegate // Definitions by: Christian Holm Nielsen // 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; }