feat: add ts-proto for new TypeScript SDK

This commit is contained in:
Nex Zhu
2021-07-22 16:21:15 +08:00
parent 345adce56e
commit dc6ca140e7
4 changed files with 196 additions and 19 deletions

View File

@@ -73,6 +73,20 @@ References:
Run:
For generating TypeScript client code with `ts-proto`, run:
```shell
invoke gen -t ts
```
For generating TypeScript definitions to be used with `@grpc/proto-loader`, run:
```shell
invoke gen -t types
```
Others:
```shell
./scripts/gen [-a, --async] [go] [gohttp] [nodejs] [docs]
```
@@ -82,12 +96,6 @@ Run:
Use `-a` or `--async` to speed up generation by asynchronously and concurrently generating all code and documentation (
script will exit without waiting for completion)
For generating TypeScript definitions to be used with `@grpc/proto-loader`, run:
```shell
invoke gen -t types
```
#### Generateing documentation
Install Go then run: