Type Alias CustomEventTarget<TDetails>

CustomEventTarget<TDetails>: {
    addEventListener<TType>(type: TType, listener: ((ev: CustomEvent<TDetails[TType]>) => any), options?: boolean | AddEventListenerOptions): void;
    dispatchEvent<TType>(ev: _TypedCustomEvent<TDetails, TType>): void;
    removeEventListener<TType>(type: TType, listener: ((ev: CustomEvent<TDetails[TType]>) => any), options?: boolean | EventListenerOptions): void;
}

Type-safe event listener and dispatch signatures for the custom events defined in TDetails.

Type Parameters

  • TDetails