domain-toolkit
    Preparing search index...

    Type Alias DomainEventClass<TEvent>

    DomainEventClass: Newable<TEvent> & { eventName: string }

    A concrete event class — constructible, and carrying the static eventName that identifies it.

    Newable<DomainEvent> alone is not enough for Handle: a constructor type says nothing about statics, so event.eventName would not typecheck.

    Type Parameters