Interface HeseyaEventBusService

Hierarchy

  • HeseyaEventBusService

Properties

Properties

emit: (<Key>(event: Key, ...payloads: HeseyaEventToPayloadMap[Key] extends undefined ? [undefined?] : [HeseyaEventToPayloadMap[Key]]) => void)

Type declaration

    • <Key>(event: Key, ...payloads: HeseyaEventToPayloadMap[Key] extends undefined ? [undefined?] : [HeseyaEventToPayloadMap[Key]]): void
    • Type Parameters

      Parameters

      • event: Key
      • Rest ...payloads: HeseyaEventToPayloadMap[Key] extends undefined ? [undefined?] : [HeseyaEventToPayloadMap[Key]]

      Returns void

on: (<Key>(event: Key, cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>) => void)

Type declaration

    • <Key>(event: Key, cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>): void
    • Type Parameters

      Parameters

      • event: Key
      • cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>

      Returns void

unsubscribe: (<Key>(event: Key, cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>) => void)

Type declaration

    • <Key>(event: Key, cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>): void
    • Type Parameters

      Parameters

      • event: Key
      • cb: EventCallbackFunction<HeseyaEventToPayloadMap[Key]>

      Returns void

Generated using TypeDoc