stephenh / ts-proto

An idiomatic protobuf generator for TypeScript
Apache License 2.0
2.01k stars 333 forks source link

Consider switching many types to interfaces #1068

Open oliveryasuna opened 2 days ago

oliveryasuna commented 2 days ago

While ts-proto is primarily a utility, it is well-suited to be used as a library. To support functionality overriding, declaration merging should be supported. There are many types that could be converted to interfaces to support this endeavour.

stephenh commented 2 days ago

Hi @oliveryasuna ; do you mean the types that ts-proto generates, like type MyMessage, or the types ts-proto uses internally, like some of the code/types used in src/main.ts?

oliveryasuna commented 2 days ago

Hi @oliveryasuna ; do you mean the types that ts-proto generates, like type MyMessage, or the types ts-proto uses internally, like some of the code/types used in src/main.ts?

The types that ts-proto uses internally.