-
Notifications
You must be signed in to change notification settings - Fork 94
Demonstrate usage of protocol buffers #61
Comments
Having written a few protoc plugins, you might consider writing your own. It will provide you a lot more control and have relatively few downsides other than taking an afternoon. It also has the fun bootstrapping problem of writing a proto parser that uses its own output to parse the protos. What's more meta than that! |
Another option might be the |
As mentioned in the other thread - producing closure-annotated .js isn't useful for ts_library since we don't want to introduce the complexity of converting closure JS signatures to |
@mrmeku made a prototype for this at ng-conf which was part of our workshop. I'll clean it up and merge that. |
This is exciting progress! |
Add example that uses it under a karma test. Fixes bazelbuild#61
Documentation published at http://tsetse.info/api |
Should have type-safe access to generated protos.
We could use this in our own repo: currently proto objects are type
any
, egrules_typescript/internal/tsc_wrapped/worker.ts
Line 26 in 6456790
https://github.com/dcodeIO/ProtoBuf.js/#usage-with-typescript seems like the obvious
.d.ts
code generator to use. This also implies that the library must use the protobuf.js generated runtime./cc @jart
The text was updated successfully, but these errors were encountered: