Shoji API Reference
    Preparing search index...

    Class EventBus<Events>

    Typed pub/sub used by Gallery and every plugin (ctx.on). Plugin subscriptions are unsubscribed automatically on destroy by the caller that owns the PluginContext, not by this class.

    Type Parameters

    • Events extends EventMap
    Index
    • Type Parameters

      • K extends string | number | symbol

      Parameters

      Returns void

    • Type Parameters

      • K extends string | number | symbol

      Parameters

      Returns void