import { ClassConstructor } from '../util' ; import { HandlerDefinition , MessageBase } from './handler' ; param messageType param messageHandler example export const handlerFor = < TMessageType extends MessageBase > ( messageType , messageHandler ) => { return { messageType , messageHandler } ; } ;