13 lines
218 B
TypeScript
13 lines
218 B
TypeScript
import { EventEmitter } from "events"
|
|
|
|
export type GlobalEvent = {
|
|
directory?: string
|
|
project?: string
|
|
workspace?: string
|
|
payload: any
|
|
}
|
|
|
|
export const GlobalBus = new EventEmitter<{
|
|
event: [GlobalEvent]
|
|
}>()
|