@tsdotnet/event-factory - v2.0.11
    Preparing search index...

    Interface EventDispatchBehavior

    interface EventDispatchBehavior {
        clearListenersAfterPublish?: boolean;
        onError?: (error: unknown) => void;
        reversePublish?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    clearListenersAfterPublish?: boolean

    When true, will clear listeners after every publish. Useful for events that will only occur once.

    onError?: (error: unknown) => void

    By default any errors caused by listeners will be thrown unless an error handler is specified here. For example, specifying console.error as the handler will send it to the console instead of throwing. You may want to inject a different error handler here.

    reversePublish?: boolean

    When true, events will be published in reverse order.