From b5cef4fb96fed3ce15c61ee954ccc3cac7432b3d Mon Sep 17 00:00:00 2001 From: Zetazzz Date: Fri, 12 Jul 2024 07:29:30 +0800 Subject: [PATCH] fix typos in autoFixUndefinedEnumDefault --- README.md | 10 +++++----- packages/telescope/README.md | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 045637418..ce1de97cb 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,10 @@ - - + + - +
@@ -23,7 +23,7 @@

- + Telescope serves as the TypeScript Companion for CosmJS, used to generate developer-friendly TypeScript libraries for Cosmos blockchains. As a TypeScript transpiler for Cosmos Protobufs, akin to a "babel for the Cosmos", simply point to your protobuffer files and create full-typed libraries for teams to build dApps on your blockchain. The following blockchain libraries (generated by Telescope) are available via npm @@ -423,7 +423,7 @@ See [RPC Clients](#rpc-clients) for more info. | `prototypes.typingsFormat.duration` | use either `duration` or `string` for `Duration` proto type | "duration"| | `prototypes.typingsFormat.setDefaultEnumToUnrecognized` | false: enum empty value would be 0, true: -1(value for enum unrecognized) |true| | `prototypes.typingsFormat.setDefaultCustomTypesToUndefined` | true: Timestamp,Duration,Any,Coin empty value would be undefined., false: using fromPartial to get an empty obj |false| -| `prototypes.typingsFormat.autoFixUndefinedEnumDefault` | the default value of an enum field would be: 1(proto2); 0(proto3); But in some rare cases, those default values are not existing. But enable this, default value will automatically fixed with the smallest value. |false| +| `prototypes.typingsFormat.autoFixUndefinedEnumDefault` | the default value of an enum field would be: 1(proto2); 0(proto3); But in some rare cases, those default values are not existing. By enabling this, the default value will be automatically fixed with the smallest value inside the enum. |false| ### Protobuf parser diff --git a/packages/telescope/README.md b/packages/telescope/README.md index 045637418..ce1de97cb 100644 --- a/packages/telescope/README.md +++ b/packages/telescope/README.md @@ -9,10 +9,10 @@ - - + + - +
@@ -23,7 +23,7 @@

- + Telescope serves as the TypeScript Companion for CosmJS, used to generate developer-friendly TypeScript libraries for Cosmos blockchains. As a TypeScript transpiler for Cosmos Protobufs, akin to a "babel for the Cosmos", simply point to your protobuffer files and create full-typed libraries for teams to build dApps on your blockchain. The following blockchain libraries (generated by Telescope) are available via npm @@ -423,7 +423,7 @@ See [RPC Clients](#rpc-clients) for more info. | `prototypes.typingsFormat.duration` | use either `duration` or `string` for `Duration` proto type | "duration"| | `prototypes.typingsFormat.setDefaultEnumToUnrecognized` | false: enum empty value would be 0, true: -1(value for enum unrecognized) |true| | `prototypes.typingsFormat.setDefaultCustomTypesToUndefined` | true: Timestamp,Duration,Any,Coin empty value would be undefined., false: using fromPartial to get an empty obj |false| -| `prototypes.typingsFormat.autoFixUndefinedEnumDefault` | the default value of an enum field would be: 1(proto2); 0(proto3); But in some rare cases, those default values are not existing. But enable this, default value will automatically fixed with the smallest value. |false| +| `prototypes.typingsFormat.autoFixUndefinedEnumDefault` | the default value of an enum field would be: 1(proto2); 0(proto3); But in some rare cases, those default values are not existing. By enabling this, the default value will be automatically fixed with the smallest value inside the enum. |false| ### Protobuf parser