Skip to content

Commit

Permalink
Fix metadata typings for TS client
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Picolo authored and stanley-cheung committed Dec 14, 2018
1 parent 1bbfb21 commit 09604c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions javascript/net/grpc/web/grpc_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ void RegisterMessage(const Descriptor* desc, std::map<string, const Descriptor*>

RegisterMessage(field->message_type(), message_types);
}
}
}

/* Finds all message types used in all services in the file, and returns them
* as a map of fully qualified message type name to message descriptor */
Expand Down Expand Up @@ -535,7 +535,7 @@ void PrintTypescriptFile(Printer* printer, const FileDescriptor* file,
printer->Indent();
printer->Print(vars,
"request: $input_type$,\n"
"metadata?: grpcWeb.Metadata,\n"
"metadata: grpcWeb.Metadata | null,\n"
"callback: (err: grpcWeb.Error,\n"
" response: $output_type$) => void) {\n");
printer->Print(vars, "return this.client_.rpcCall(\n");
Expand Down

0 comments on commit 09604c4

Please sign in to comment.