Type alias MediatorOptions<Context, EventName>

MediatorOptions<Context, EventName>: {
    middlewares?: MediatorMiddlewareConfig<Context, EventName>[];
}

Represents the options for creating a Mediator instance.

Type Parameters

  • Context extends MediatorContext

    The type of the MediatorContext.

  • EventName extends string = string

    The type of the event names.

Type declaration