ts-proto
ts-proto copied to clipboard
How to deal with extensions?
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 ?
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!
Fixed by https://github.com/stephenh/ts-proto/pull/808