Setu-TS
    Preparing search index...

    Interface QueryHandlerRegistration

    One query handler and the query type the bus routes to it.

    CommandHandlerRegistration for why the handler is typed at the interface's defaults.

    0.1.0

    interface QueryHandlerRegistration {
        handler:
            | IQueryHandler<CqrsQuery<unknown>, unknown>
            | RegistryFactory<IQueryHandler<CqrsQuery<unknown>, unknown>>;
        type: string;
    }
    Index
    handler:
        | IQueryHandler<CqrsQuery<unknown>, unknown>
        | RegistryFactory<IQueryHandler<CqrsQuery<unknown>, unknown>>

    The handler to register for that type, or a factory that builds one from the service registry.

    See CommandHandlerRegistration.handler for the instance and factory arms and their timing.

    type: string

    Query type name, matching query.type.