grpc / grpc/grpc-node

Make proto-loader-gen-types callable.

Open
#1,913 0 comments 2 reactions 0 assignees View on GitHub
feature request package: @grpc/proto-loader
Dominant language
TypeScript
Stars
4.8k
Forks
716
Avg merge
2d 3h
Merged PRs (30d)
10

Description

### Is your feature request related to a problem? Please describe.

I would like to call `proto-loader-gen-types` from TypeScript code. However, nothing is exported.

### Describe the solution you'd like

Add `export` to `writeAllFiles()` so that it can be called directly.

It is located in the file:

`/packages/proto-loader/bin/proto-loader-gen-types.ts`

### Describe alternatives you've considered

I am currently calling `exec()`, but this is not ideal.

### Additional context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.