Setu-TS
    Preparing search index...

    Type Alias EventHandler<T>

    EventHandler: (event: IDomainEvent<T>) => void | Promise<void>

    Handles one event type.

    Type Parameters

    • T = unknown

      The event payload type

    Type Declaration

      • (event: IDomainEvent<T>): void | Promise<void>
      • Parameters

        Returns void | Promise<void>

    0.1.0