UNPKG

typescript-event-emitter

Version:

Versatile and feature-rich TypeScript library for event management, providing a solid foundation for building event-driven applications in TypeScript.

11 lines (10 loc) 542 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.globalEventBus = void 0; exports.useGlobalEventBus = useGlobalEventBus; const index_1 = require("../../index"); Object.defineProperty(exports, "globalEventBus", { enumerable: true, get: function () { return index_1.globalEventBus; } }); const BaseEventComposable_1 = require("./BaseEventComposable"); function useGlobalEventBus(event, handler, options) { (0, BaseEventComposable_1.useBaseEventSource)(index_1.globalEventBus, event, handler, options); }