You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# grpc-js types
2
2
3
-
This repo shows how to use gRPC with TypeScript.
3
+
This repo shows how to use gRPC with TypeScript.
4
4
5
5
In all cases, [`@grpc/grpc-js`](https://www.npmjs.com/package/@grpc/grpc-js) is used as [`grpc`](https://www.npmjs.com/package/grpc) is now [effectively deprecated](https://grpc.io/blog/grpc-js-1.0/).
6
6
@@ -10,11 +10,15 @@ TypeScript types are generated at build time from the proto files using differen
10
10
11
11
Each example is a separate application. Refer to the README in each project for more information.
Thanks to [this issue](https://github.com/agreatfool/grpc_tools_node_protoc_ts/issues/79) being fixed, we now have type parity across the different type generator packages. 🎉
18
22
19
23
## Contributions
20
24
@@ -29,6 +33,6 @@ These are the various contributions I made to help with gRPC & TypeScript suppor
Copy file name to clipboardExpand all lines: examples/grpc_tools_node_protoc_ts/README.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,10 +4,6 @@ This example shows how to use the [proto compiler](https://www.npmjs.com/package
4
4
5
5
The [proto compiler](https://www.npmjs.com/package/grpc-tools) and [`grpc_tools_node_protoc_ts`](https://www.npmjs.com/package/grpc_tools_node_protoc_ts) compiler plugin are used to generate JavaScript & TypeScript files from the proto definitions and [`google-protobuf`](https://www.npmjs.com/package/google-protobuf) & [`@grpc/grpc-js`](https://www.npmjs.com/package/@grpc/grpc-js) is used at runtime.
6
6
7
-
## Issues with this approach
8
-
9
-
The generated server type is incompatible with the gRPC service implementation. You'll need to use `// @ts-ignore` when adding the service.
10
-
11
7
## App layout
12
8
13
9
-[package.json](./package.json) - Dependencies and node build scripts
0 commit comments