Skip to content

Commit

Permalink
docs: updated example docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lewnelson committed Jan 26, 2023
1 parent 2478a44 commit 5fc75aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Examples

The code inside `generated/` was created with the following command:

```bash
npx grpc-ts generate ./example.proto ./generated
```

- [Using the generated client](./generated_client/README.md)
5 changes: 5 additions & 0 deletions examples/generated_client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@
The `grpc-ts` CLI tool will generate the output from [grpc-tools](https://www.npmjs.com/package/grpc-tools) as well as creating a client class which uses the [GenericClient](../generic_client/README.md) under the hood to make requests.

The client class method names are a 1:1 mapping of the methods defined in the generated client class on the `_grpc_pb.d.ts` files.

- [Bidirectional streaming](./bidirectionalStreaming.ts)
- [Client streaming](./clientStreaming.ts)
- [Server streaming](./serverStreaming.ts)
- [Unary requests](./unaryRequests.ts)

0 comments on commit 5fc75aa

Please sign in to comment.