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
@@ -61,6 +61,7 @@ A macro to generate JavaScript code and TypeScript typings from .proto files.
61
61
| <aid="ts_proto_library-name"></a>name | name of resulting ts_proto_library target | none |
62
62
| <aid="ts_proto_library-node_modules"></a>node_modules | Label pointing to the linked node_modules target where @bufbuild/protoc-gen-es is linked, e.g. //:node_modules. Since the generated code depends on @bufbuild/protobuf, this package must also be linked. If `gen_connect_es = True` then @bufbuild/proto-gen-connect-es should be linked as well. If `gen_connect_query = True` then @bufbuild/proto-gen-connect-query should be linked as well. | none |
63
63
| <aid="ts_proto_library-proto"></a>proto | the `proto_library` target that contains the .proto files to generate code for. | none |
64
+
| <aid="ts_proto_library-protoc_gen_options"></a>protoc_gen_options | dict of protoc_gen_es options. See https://github.com/bufbuild/protobuf-es/tree/main/packages/protoc-gen-es#plugin-options|`{}`|
64
65
| <aid="ts_proto_library-gen_connect_es"></a>gen_connect_es | whether protoc_gen_connect_es should generate grpc services, and therefore `*_connect.{js,d.ts}` should be written. |`True`|
65
66
| <aid="ts_proto_library-gen_connect_query"></a>gen_connect_query | whether protoc_gen_connect_query should generate [TanStack Query](https://tanstack.com/query) clients, and therefore `*_connectquery.{js,d.ts}` should be written. |`False`|
66
67
| <aid="ts_proto_library-gen_connect_query_service_mapping"></a>gen_connect_query_service_mapping | mapping from source proto file to the named RPC services that file contains. Needed to predict which files will be generated by gen_connect_query. See https://github.com/connectrpc/connect-query-es/tree/main/examples/react/basic/src/gen<br><br>For example, given `a.proto` which contains a service `Foo` and `b.proto` that contains a service `Bar`, the mapping would be `{"a.proto": ["Foo"], "b.proto": ["Bar"]}`|`{}`|
If `gen_connect_es = True` then @bufbuild/proto-gen-connect-es should be linked as well.
59
59
If `gen_connect_query = True` then @bufbuild/proto-gen-connect-query should be linked as well.
60
60
proto: the `proto_library` target that contains the .proto files to generate code for.
61
+
protoc_gen_options: dict of protoc_gen_es options.
62
+
See https://github.com/bufbuild/protobuf-es/tree/main/packages/protoc-gen-es#plugin-options
61
63
gen_connect_es: whether protoc_gen_connect_es should generate grpc services, and therefore `*_connect.{js,d.ts}` should be written.
62
64
gen_connect_query: whether protoc_gen_connect_query should generate [TanStack Query](https://tanstack.com/query) clients, and therefore `*_connectquery.{js,d.ts}` should be written.
63
65
gen_connect_query_service_mapping: mapping from source proto file to the named RPC services that file contains.
0 commit comments