0rpc/zerorpc-node

Where is the love for typescript?

P0oOOOo0YA opened this issue · 4 comments

Loved the project but sadly there is no type definition file available.

I took a look at making a TS Definition file but can't understand the format of the invoke method, it looks highly irregular and therefore it might not be possible to create TS definitions.

The main issue I could see without looking in too much detail was that the args parameter in Invoke isn't at the end which is a requirement for 'rest parameters'.

If changing the API isn't out of the question, I think it would make more sense to have that at the end anyway and move the callback to before the arguments.