-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difficulty in reading documentation as a beginner #342
Comments
Thank you for this feature request @simonebenati! I agree, the docs are difficult to read and should be improved. Here's some info that we have today about the parameters: |
@DavidVujic thank you, |
Also one thing, how do you handle disconnects and errors using the .on method? |
Good feedback, thank you! This is very useful for me when updating the docs. Meanwhile, there is the example code that I believe would answer some of your questions: https://github.com/yfinkelstein/node-zookeeper/blob/master/examples/wrapper.js#L25 |
I also just tried using this library and, unfortunately, I'm really struggling to understand how to use it. Right off the bat, the first example in README is this:
What is the The documentation says
There is an "Input parameters" section with some descriptions, but there are lots of methods and only one "Input parameters" section with no mention of "are they input parameters of what?". 🤷♂️ So I thought I could just look up the JSDoc/types. However, while they are present, they are not helpful at all. /**
* @param {object|string} config
* @returns {ZooKeeper}
*/
init(config: object | string): ZooKeeper; There are lots of problems with such a signature:
And I'm not even talking about cases like I'm happy to try and submit a PR(s) to address some of the issues mentioned above if I get a chance and will be able to understand the library. |
Hello @TimShilov, this project already uses TypeScript enabled docs, and I am surprised that it doesn't seem to work for you. Here's a recording I just made (my code editor both pops up docs/types and at the very bottom). The types are already there and should work, unless there is some bugs or other configuration that I have overlooked. The |
@TimShilov In the recordings I have made, I don't use any specific TS config. I just created a new project with It seems that your setup is different, can you share that one and/or help me figure out what doesn't work for you? |
Adding another response about the dynamic options object passed in to the about the So, what's the I think this, together with my examples from the previous comments, should cover all the things raised by @TimShilov except the fact that the |
Is your feature request related to a problem? Please describe.
I have difficulties reading the documentation and especially what each parameter does.
Describe the solution you'd like
Could you please provide a brief explanation to each option and what it does or maybe a reference to official zookeeper docs?
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: