Connectum API Reference / @connectum/events / types / ServiceEventHandlers
Type Alias: ServiceEventHandlers<S>
ServiceEventHandlers<
S> ={ [K in S["methods"][number] as K["localName"]]: TypedEventHandler<MessageShape<K["input"]>> }
Defined in: packages/events/src/types.ts:177
Maps service methods to typed event handlers.
Conditional type: for each method in the service descriptor, creates a handler expecting the method's input type.
Type Parameters
S
S extends DescService
