Skip to content

outputServices=grpc-js always generates client stub #471

Closed
@alexeyten

Description

I've tried to use options --ts_proto_opt=esModuleInterop=true,outputServices=grpc-js,outputClientImpl=false, but interface TestClient extends Client { ... } and const TestClient = makeGenericClientConstructor(...) are always generated.

I guess it's because there is no options check in https://github.com/stephenh/ts-proto/blob/main/src/generate-grpc-js.ts#L41-L42

So far, I've found that outputClientImpl option has effect only for outputServices=default.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions