mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 18:32:48 +00:00
9 lines
160 B
TypeScript
9 lines
160 B
TypeScript
import mitt from "mitt";
|
|
const bus: any = {};
|
|
const emitter = mitt();
|
|
bus.on = emitter.on;
|
|
bus.off = emitter.off;
|
|
bus.emit = emitter.emit;
|
|
|
|
export default bus;
|