I'm attempting to generate some Typescript files for a React project that would utilize gRPC through proto files.
I ran a script:
#!/bin/bash
IN_DIR="./protos"
OUT_DIR="./dist"
# Generate the types
yarn proto-loader-gen-types \
--grpcLib=@grpc/grpc-js \
--outDir=${OUT_DIR}/types/ \
${IN_DIR}/*.proto
This somehow only generates the types and interfaces without the actual services. Apologizes if I am using the wrong terms, I am new to doing gRPCs.
Is there another script that I need to run to generate the meat of the files that I need to start working with gRPC?