Describe the bug
We have a pretty large hub and have decided to split the interface declaration into partial interfaces. Unfortunately, this causes duplicate code in the generated output.
To Reproduce
[Hub]
partial interface IClientHub
{
Task Join(int clientId);
Task Leave(int clientId);
}
partial interface IClientHub
{
Task SomeFunction();
}
The TypedSignalR.Client/index.ts generated output will contain two declaration
class IClientHub_HubProxy implements IClientHub {
// ...
}
class IClientHub_HubProxyFactory implements HubProxyFactory<IClientHub> {
// ...
}
class IClientHub_HubProxy implements IClientHub {
// ...
}
class IClientHub_HubProxyFactory implements HubProxyFactory<IClientHub> {
// ...
}
Expected behavior
A single class should be generated containing all the declared method of the partial interfaces.
Describe the bug
We have a pretty large hub and have decided to split the interface declaration into partial interfaces. Unfortunately, this causes duplicate code in the generated output.
To Reproduce
The
TypedSignalR.Client/index.tsgenerated output will contain two declarationExpected behavior
A single class should be generated containing all the declared method of the partial interfaces.