dap-design-system
Version:
Official design system for the DÁP (dap.gov.hu)
12 lines (11 loc) • 316 B
TypeScript
export interface EventOptions {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
export declare class EventEmitter<T> {
private readonly target;
private readonly eventName;
constructor(target: HTMLElement, eventName: string);
emit(value: T, options?: EventOptions): void;
}