module preferred license /** */ import { ModuleRpcClient } from '../../client' ; import { ModuleRpcCommon } from '../../common' ; example export function getMockRpcClient < serviceDefinition extends ModuleRpcCommon . ServiceDefinition , ResponseContext > ( serviceDefinition , streamProducer ) { return new ModuleRpcClient . Service < serviceDefinition , ResponseContext > ( serviceDefinition , streamProducer ) ; }