mirror of
https://github.com/grpc/grpc-node.git
synced 2026-01-25 14:27:06 +00:00
Fix a couple of type name errors
This commit is contained in:
parent
3d369e9f56
commit
8bfa472df0
@ -125,7 +125,7 @@ function generatePermissiveMessageInterface(formatter: TextFormatter, messageTyp
|
||||
type = 'string';
|
||||
break;
|
||||
case 'bytes':
|
||||
type = 'Buffer | UInt8Array | String';
|
||||
type = 'Buffer | Uint8Array | string';
|
||||
break;
|
||||
default:
|
||||
if (field.resolvedType === null) {
|
||||
@ -188,7 +188,7 @@ function generateRestrictedMessageInterface(formatter: TextFormatter, messageTyp
|
||||
if (options.bytes === Array) {
|
||||
type = 'Uint8Array';
|
||||
} else if (options.bytes === String) {
|
||||
type = 'String';
|
||||
type = 'string';
|
||||
} else {
|
||||
type = 'Buffer';
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@grpc/proto-loader",
|
||||
"version": "0.6.0-pre1",
|
||||
"version": "0.6.0-pre2",
|
||||
"author": "Google Inc.",
|
||||
"contributors": [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user