UNPKG

generator-effective

Version:

a opinionated and progressive generator to make package.json and thousands of configs effective

17 lines (14 loc) 435 B
import { handleServerStreamingCall } from 'grpc'; import { <%= requestType %>, <%= responseType %> } from '<%= pbPath %>'; /** * Implements the <%= method %> RPC method. */ const <%= method %>: handleServerStreamingCall<<%= requestType %>, <%= responseType %>> = ( call ) => { // const { request, metadata } = call; const reply = new <%= responseType %>(); call.write(reply); call.end(); }; export default <%= method %>;