Comments (4)
Perhaps it's better just to directly use protobufjs
directly for the message codegen and use the inferred typing from what gRPC generates. Types for the server methods are inferred pretty decently. /shrug
from rxjs-grpc.
@quicksnap it's actually pretty easy to write your own protoc plugin to control the generated code and make it more suitable to your coding style/requirements.
Apart from this project (I love the observable approach with grpc), you can also take inspiration from these repos:
https://github.com/improbable-eng/ts-protoc-gen
https://github.com/agreatfool/grpc_tools_node_protoc_ts
from rxjs-grpc.
@quicksnap Do you think this is still relevant?
from rxjs-grpc.
My current job doesn't involve any gRPC, so if you want to close it, I'm totally fine with that! =)
from rxjs-grpc.
Related Issues (20)
- publish $protobuf import patch to npm HOT 1
- ServerBuilder/ClientBuilder for nested namespaces/packages HOT 1
- Output only contains "There are no input files to process." on OSX HOT 1
- Unable to run example with TypeScript 2.5.x HOT 3
- For service calls with streaming requests, the request should be a observable. HOT 1
- Support OS allocated random TCP port HOT 1
- Enums are received as string, while the generated enum types them as number HOT 3
- Type 'ClientFactoryConstructor<{}>' cannot be converted to type 'ClientFactory'. Property 'getEmployeeRepo' is missing in type 'ClientFactoryConstructor<{}>'. HOT 2
- Type generation error
- Upgrade to RxJS 6 or add rxjs-compat dependency HOT 4
- Split generation and lib into two packages
- Create releases with proper release notes HOT 2
- Translate protobuf oneof attribute values into string literal types HOT 2
- Static generation HOT 2
- Is it no longer under maintenance? HOT 1
- Don't work in Angular HOT 1
- Unsubscribe Stream does not close connection
- Generated Enum Types Need to be Compiled
- support `protoc --proto_path=$GOPATH/src/whgo/product/proto` like go for import package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxjs-grpc.