Beignet API reference
Preparing search index...
@beignet/core
events
publishEvent
Function publishEvent
publishEvent
<
E
extends
EventPayloadDef
<
string
,
StandardSchema
>
>
(
eventBus
:
EventBusLike
,
event
:
E
,
payload
:
InferEventPayload
<
E
>
,
)
:
Promise
<
void
>
Validate an event payload and publish it through an event bus.
Type Parameters
E
extends
EventPayloadDef
<
string
,
StandardSchema
>
Parameters
eventBus
:
EventBusLike
event
:
E
payload
:
InferEventPayload
<
E
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Beignet API reference
Loading...
Validate an event payload and publish it through an event bus.