agreatfool / grpc_tools_node_protoc_ts

Generate TypeScript d.ts definitions for generated js files from grpc_tools_node_protoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple services with similar methods

rensdewolf opened this issue · comments

If I define two services in the same proto file with similar method names but different parameters, the resulting definitions lead to conflicts. For example:

service Library {
    rpc GetBook (GetBookRequest) returns (Book) {}
}

service BookStore {
    rpc GetBook (GetBookOrder) returns (Book) {}
}

This creates two interfaces for GetBook (IGetBook) that have different implementations and lead to issues when using the typescript compiler. I wondered if there is a way to deal with this (within the same package scope)?

Fixed. Please check the latest version v2.2.4.

If any issues remained, please contact me again. Thanks for your issue.