Skip to content

Commit

Permalink
Transport member of ServiceClientOptions should be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed Oct 15, 2018
1 parent 0b5d779 commit fb4f7f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/grpcweb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function generateTypescriptDefinition(fileDescriptor: FileDescriptorProto, expor

printer.printLn(`export type ServiceError = { message: string, code: number; metadata: grpc.Metadata }`);
printer.printLn(`export type Status = { details: string, code: number; metadata: grpc.Metadata }`);
printer.printLn(`export type ServiceClientOptions = { transport: grpc.TransportConstructor; debug?: boolean }`);
printer.printLn(`export type ServiceClientOptions = { transport?: grpc.TransportConstructor; debug?: boolean }`);
printer.printEmptyLn();
printer.printLn(`interface ResponseStream<T> {`);
printer.printIndentedLn(`cancel(): void;`);
Expand Down

0 comments on commit fb4f7f8

Please sign in to comment.