EventPublisher: (<T>(eventName: EventName, data: T) => void)

Type representing a function that publishes events.

Type declaration

    • <T>(eventName, data): void
    • Type Parameters

      • T

        The type of the event data.

      Parameters

      • eventName: EventName

        The name of the event.

      • data: T

        The data associated with the event.

      Returns void