Closed stasberkov closed 7 months ago
Versions of relevant software used ts-protoc-gen@0.15.0
What happened
I have protocol with repeated extension field i.e.
extend WebAPI_2.ClientMsg { repeated RFQSubscriptionRequest rfq_subscription_requests = 206; }
ts-protoc-gen generates typing for it as
ts-protoc-gen
export const rfqSubscriptionRequests: jspb.ExtensionFieldInfo<RFQSubscriptionRequest>;
What you expected to happen
Typing should be
export const rfqSubscriptionRequestsList: jspb.ExtensionFieldInfo<Array<RFQSubscriptionRequest>>;
Changes: 1) add "List" suffix, 2) add Array for type.
Array
Versions of relevant software used ts-protoc-gen@0.15.0
What happened
I have protocol with repeated extension field i.e.
ts-protoc-gen
generates typing for it asWhat you expected to happen
Typing should be
Changes: 1) add "List" suffix, 2) add
Array
for type.