Skip to content

Commit

Permalink
fix: problem with verbatimModuleSyntax for grpc-js (#1132)
Browse files Browse the repository at this point in the history
Hello, I have a few issues when verbatimModuleSyntax is enabled:

<img width="664" alt="image"
src="https://github.com/user-attachments/assets/647bdb25-5cc5-420e-a7bc-09ade1f53263">

---------

Co-authored-by: Krzysztof Rosiński <[email protected]>
  • Loading branch information
rosek86 and td-krzysiek authored Nov 11, 2024
1 parent 1c14fd6 commit bedfa31
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 18 deletions.
15 changes: 5 additions & 10 deletions integration/grpc-js/simple.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions integration/nestjs-metadata-grpc-js/hero.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions src/generate-grpc-js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ const CallOptions = imp("t:CallOptions@@grpc/grpc-js");
const ChannelCredentials = imp("ChannelCredentials@@grpc/grpc-js");
const ClientOptions = imp("t:ClientOptions@@grpc/grpc-js");
const Client = imp("Client@@grpc/grpc-js");
const ClientDuplexStream = imp("ClientDuplexStream@@grpc/grpc-js");
const ClientReadableStream = imp("ClientReadableStream@@grpc/grpc-js");
const ClientDuplexStream = imp("t:ClientDuplexStream@@grpc/grpc-js");
const ClientReadableStream = imp("t:ClientReadableStream@@grpc/grpc-js");
const ClientUnaryCall = imp("t:ClientUnaryCall@@grpc/grpc-js");
const ClientWritableStream = imp("ClientWritableStream@@grpc/grpc-js");
const handleBidiStreamingCall = imp("handleBidiStreamingCall@@grpc/grpc-js");
const handleClientStreamingCall = imp("handleClientStreamingCall@@grpc/grpc-js");
const handleServerStreamingCall = imp("handleServerStreamingCall@@grpc/grpc-js");
const ClientWritableStream = imp("t:ClientWritableStream@@grpc/grpc-js");
const handleBidiStreamingCall = imp("t:handleBidiStreamingCall@@grpc/grpc-js");
const handleClientStreamingCall = imp("t:handleClientStreamingCall@@grpc/grpc-js");
const handleServerStreamingCall = imp("t:handleServerStreamingCall@@grpc/grpc-js");
const handleUnaryCall = imp("t:handleUnaryCall@@grpc/grpc-js");
const UntypedServiceImplementation = imp("t:UntypedServiceImplementation@@grpc/grpc-js");
const makeGenericClientConstructor = imp("makeGenericClientConstructor@@grpc/grpc-js");
Expand Down

0 comments on commit bedfa31

Please sign in to comment.