Skip to content
This repository was archived by the owner on Jul 8, 2025. It is now read-only.

Latest commit

 

History

History
45 lines (24 loc) · 975 Bytes

File metadata and controls

45 lines (24 loc) · 975 Bytes

@brainhubeu/sqrs"events/EventHandler"EventHandler

Interface: EventHandler <TEvent>

Base interface that event handlers implement

interface CommandHandler

template type of handled event

Type parameters

TEvent: Event

Hierarchy

  • EventHandler

Index

Methods

Methods

handle

handle(event: TEvent): void | Promise‹void›

Defined in events/EventHandler.ts:30

Handles an event

memberof EventHandler

Parameters:

Name Type Description
event TEvent event to handle

Returns: void | Promise‹void›

  • either nothing or a Promise that resolves when event is handled