Hi!
Thanks for your great work, the library is working like a charm 👍.
One small issue: your index.d.ts shows the return type of "getSocket()" as "Socket". That's right for an open connection, but wrong for an unused Telnet instance.
In my eyes it would be better to mark it as:
getSocket(): Socket | undefined;
I have to make a "unnecessary-condition" to get it working with eslint and strict rules:
Hi! Thanks for your great work, the library is working like a charm 👍.
One small issue: your index.d.ts shows the return type of "getSocket()" as "Socket". That's right for an open connection, but wrong for an unused Telnet instance. In my eyes it would be better to mark it as:
I have to make a "unnecessary-condition" to get it working with eslint and strict rules:
Thank you in advance!