Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding keyword list on each repeated field in asObject #110

Open
YounosAlshamy opened this issue Aug 3, 2021 · 1 comment
Open

Adding keyword list on each repeated field in asObject #110

YounosAlshamy opened this issue Aug 3, 2021 · 1 comment

Comments

@YounosAlshamy
Copy link

YounosAlshamy commented Aug 3, 2021

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

syntax = "proto3";

package test;

message Users {
repeated uint32 ids = 1;
}

_pb.d.ts file will be like that

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

@YounosAlshamy YounosAlshamy changed the title Adding keyword list on each repeated field in asObject Adding keyword list on each repeated field in asObject Aug 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants