Fix a couple of type name errors

This commit is contained in:
Michael Lumish 2020-06-12 11:22:07 -07:00
parent 3d369e9f56
commit 8bfa472df0
2 changed files with 3 additions and 3 deletions

View File

@ -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';
}

View File

@ -1,6 +1,6 @@
{
"name": "@grpc/proto-loader",
"version": "0.6.0-pre1",
"version": "0.6.0-pre2",
"author": "Google Inc.",
"contributors": [
{