levrik/node-modern-rcon

Constants for COMMAND and RESPONSE_AUTH are the same

Closed this issue · 5 comments

This simply seems problematic to me. Can you explain?

Ok got it. It's the same for different operations.
Just finished this:
https://github.com/electricessence/rcon-ts (fork of your repo)

@electricessence Why didn't you contribute typings to this repo? Just curious 🙂

I'm all for starting a pull request, but I've gone beyond just adding a *.d.ts.
Once you switch to TS, certain patterns show up. The *.js and *.d.ts files are in NPM.

I'm still working out the kinks too. Remember to include them in your package.json as "typings":"[name].d.ts".
rcon.d.ts.zip

Here's the current d.ts file as it's being rendered. It's going to be different than yours but might be useful with a few tweaks.