brandonxiang / protobuf-to-typescript

A converter from pb to typescript
https://pb.brandonxiang.top
MIT License
77 stars 15 forks source link

fix: generate _: unknown type for empty request types #15

Closed dogukanakkaya closed 2 years ago

dogukanakkaya commented 2 years ago

Even though google.protobuf.Empty defined in proto file, Javascript proto implementation requests a parameter. null or empty object {} or probably anything is accepted. But throws an error if no parameter is passed:

Error: Incorrect arguments passed