Open YounosAlshamy opened 3 years ago
I am using nestjs framework and to send the result to grpc I must use asObject to convert the class to object but my problem that you added keyword list on each repeated field in asObject like this proto
nestjs
asObject
list
syntax = "proto3"; package test; message Users { repeated uint32 ids = 1; }
_pb.d.ts file will be like that
_pb.d.ts
export namespace Users { export type AsObject = { idsList: Array<number>, } }
I can't send this one to grpc because in my proto ids not idsList and I can't use _grpc_pb.d.ts because I don't want to overwrite grpc sever in nestjs
ids
idsList
_grpc_pb.d.ts
Please have a look at :
I think the grpc js source code append the List suffix, so ts need to follow it.
grpc js source code
List
I am using
nestjs
framework and to send the result to grpc I must useasObject
to convert the class to object but my problem that you added keywordlist
on each repeated field inasObject
like this proto_pb.d.ts
file will be like thatI can't send this one to grpc because in my proto
ids
notidsList
and I can't use_grpc_pb.d.ts
because I don't want to overwrite grpc sever innestjs