Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Yo-mah-Ya committed Oct 21, 2023
1 parent f90488e commit 9fa5333
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ yarn add --dev proto-to-ts-type

```sh
protoc \
--plugin="./build/src/protoc-gen-ts-type" \
--plugin="./node_modules/.bin/protoc-gen-ts-type" \
--ts-type_out=. \
proto.proto
```
Expand All @@ -28,9 +28,9 @@ For example, If you'd like to generate `json_name` defined in protofiles as TS t

Each the pair of key and value is supposed to be delimited by equal sign `=`, and comma `,` for each parameters.

```
```sh
protoc \
--plugin="./build/src/protoc-gen-ts-type" \
--plugin="./node_modules/.bin/protoc-gen-ts-type" \
--ts-type_out=. \
--ts-type_opt=useJsonName=true,enumValueAsString=true \
proto.proto
Expand Down

0 comments on commit 9fa5333

Please sign in to comment.