Skip to content

Auto generate typescript interfaces/classes from proto.file #15

@VMois

Description

@VMois

Original Description

To eliminate two files definition by users (proto.file and typescript) we can create a tool to automatically generate typescript interfaces/classes from a proto file and add it, for example, to CLI.

Interesting example is this tool -> https://geotho.github.io/protobuf-to-typescript/
But the main problem this tool doesn't handle services and RPC methods.

Maybe we need to create our generating tool based on this? If yes, where to put our tool and how it will work?

Implement auto-generated typescript interfaces and classes from proto files. This should automatically discover and watch proto files.

PR: #17 #18 #22

  1. Autodiscover protofiles within project directory
  2. Generate declaration and service file from proto file
  3. Improve decorator to receive TS gencode
  4. Improve gRPC Server to accept TS gencode
  5. Fix generator output structure
  6. Watch for proto files changes to generate updated TS Files

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions