Skip to content

Commit

Permalink
v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Yo-mah-Ya committed Oct 26, 2023
1 parent 9d96575 commit ec8e15f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ protoc \

Check in `src/option.ts`.

| key | value | |
| ----------------- | -------------- | -------------------------------------------------------------------------------- |
| useJsonName | `true`/`false` | `json_name` in a proto file would be used. |
| enumValueAsString | `true`/`false` | Enum value would be same as member names instead of numbers, which starts with 0 |
| key | value | |
| -------------------- | -------------- | -------------------------------------------------------------------------------- |
| useJsonName | `true`/`false` | `json_name` in a proto file would be used. |
| enumValueAsString | `true`/`false` | Enum value would be same as member names instead of numbers, which starts with 0 |
| useTypeGuardForOneOf | `true`/`false` | If true, add `type guard functions` for oneof operation, or optional properties. |

## The mapping rules of proto to TypeScript types

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "proto-to-ts-type",
"version": "0.1.2",
"version": "0.1.3",
"description": "proto-to-ts-type",
"author": "yoshinari-yamanaka",
"license": "MIT",
Expand Down

0 comments on commit ec8e15f

Please sign in to comment.