@stencil/core
Version:
A Compiler for Web Components and Progressive Web Apps
14 lines (13 loc) • 383 B
TypeScript
import * as d from '.';
export interface AddEventListener {
(elm: Element | Document | Window, eventName: string, cb: EventListenerCallback, opts?: d.ListenOptions): Function;
}
export interface EventListenerCallback {
(ev?: any): void;
}
export interface EventEmitterData<T = any> {
detail?: T;
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}