feat(core): add fence to make all methods strongly consistent when syncing (#22679)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { EventEmitter } from "events"
|
||||
|
||||
export type GlobalEvent = {
|
||||
directory?: string
|
||||
project?: string
|
||||
workspace?: string
|
||||
payload: any
|
||||
}
|
||||
|
||||
export const GlobalBus = new EventEmitter<{
|
||||
event: [
|
||||
{
|
||||
directory?: string
|
||||
project?: string
|
||||
workspace?: string
|
||||
payload: any
|
||||
},
|
||||
]
|
||||
event: [GlobalEvent]
|
||||
}>()
|
||||
|
||||
Reference in New Issue
Block a user