UNPKG

@egjs/component

Version:

A base class utility that manages events and options in modules.

11 lines (10 loc) 379 B
import { DefaultProps } from "./types"; declare class ComponentEvent<PROPS extends Record<string, any>, TYPE extends string = string, THIS = any> implements DefaultProps<TYPE, THIS> { currentTarget: THIS; eventType: TYPE; private _canceled; constructor(eventType: TYPE, props: PROPS); stop(): void; isCanceled(): boolean; } export default ComponentEvent;