The initial context for the Mediator.
A Mediator instance with the specified context type and event names.
createMediator
string
type MyEvents = 'item:added' | 'item:removed'
interface MyContext extends MediatorContext {
items: number[]
}
const myMediator = createMediator<MyContext, MyEvents>(initialContext)
Generated using TypeDoc
Creates a Mediator instance with a specific initial context.