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

How to deal with extensions?

Open LazloN5 opened this issue 3 years ago • 1 comments

Hi,

I've been looking around but I couldn't find any clear answer. I have this custom message: message CustomMessage { required uint32 conversationID = 1; extensions 2 to max; extend CustomMessage { optional Request request = 2; optional Response response = 2; } }

How do I add the Request to the message in typescript ?

LazloN5 avatar Nov 01 '21 16:11 LazloN5

Hey @LazloN5 , ts-proto doesn't have any support for extensions at the moment; if you'd like to hack on it, that'd be great!

stephenh avatar Nov 12 '21 15:11 stephenh

Fixed by https://github.com/stephenh/ts-proto/pull/808

davidzeng0 avatar Mar 30 '23 16:03 davidzeng0