Interface EventDispatcher<EventMap>
Type Parameters
- EventMap extends Record<string, any>
- EventDispatcher<Type extends string | number | symbol>(
...args: null extends EventMap[Type]
? [type: Type, parameter?: EventMap[Type], options?: DispatchOptions]
: undefined extends EventMap[Type]
? [type: Type, parameter?: EventMap[Type], options?: DispatchOptions]
: [type: Type, parameter: EventMap[Type], options?: DispatchOptions],
): boolean Type Parameters
Parameters
Returns boolean