mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
proto-loader: declare oneof fields as optional
This commit is contained in:
parent
46a5e517ec
commit
7d39d52b77
@ -398,7 +398,7 @@ function generateRestrictedMessageInterface(formatter: TextFormatter, messageTyp
|
||||
if (options.includeComments) {
|
||||
formatComment(formatter, oneof.comment, oneof.options);
|
||||
}
|
||||
formatter.writeLine(`'${oneof.name}': ${typeString};`);
|
||||
formatter.writeLine(`'${oneof.name}'?: ${typeString};`);
|
||||
}
|
||||
}
|
||||
if (options.outputBranded) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user