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) 541 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 BaseEventHook_1 = require("./BaseEventHook"); function useGlobalEventBus(event, handler, options, deps = []) { (0, BaseEventHook_1.useBaseEventSource)(index_1.globalEventBus, event, handler, options, deps); }