Closed bzuidgeest closed 1 month ago
Have you seen examples? Array.Join
is used to address this problem:
parameters = method | Action.Parameters | Parameters.ToTypeScript | Array.Join ", ";
I see what you mean in the extensions example. I don't use typescript that often, let alone this library, which is completely new to me. It's easy to miss something like that in a example without any comments. The intellisense clearly says "Action.Parameters" works on webapi action methods.... But apparently it isn't really that picky. Who knew?
So maybe not the greatest question, but your answer was very helpful to me.
I'm trying to render my signalR hub to a clientside typescript class.
I have for example this template code
But with how I do the parameters I end up with one comma to many in the function parameters. for example
Maybe I can fix this with Array Each to create the parameters and then do Array Join..... But that feels convoluted.
Considering the goal of this language, I wonder if there might not be a better way to do this.