ts-proto icon indicating copy to clipboard operation
ts-proto copied to clipboard

Consider switching many types to interfaces

Open oliveryasuna opened this issue 1 year ago • 2 comments

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.

oliveryasuna avatar Jul 01 '24 01:07 oliveryasuna

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?

stephenh avatar Jul 01 '24 03:07 stephenh

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.

oliveryasuna avatar Jul 01 '24 03:07 oliveryasuna