Closed Stono closed 2 years ago
Thank you for reporting @Stono !
Yes, the docs seem to be incorrect. Looks like the first part is an array of stat objects (https://github.com/yfinkelstein/node-zookeeper/blob/master/lib/typedefs.js#L11).
I'll have a look!
No problemo - glad it wasn't user error haha
I couldn't really figure out how to specify the actual types in an array, so I went for a "array of any" with additional doc string. I hope this will solve it 😄
Describe the bug The type definition for get is:
Which indicates a string or a buffer response, however what we actually get back is:
Which is an array, looks like the actual value is in
response[0]
- so shouldn't the return type be like,[ZKMetadata?, string | Buffer]
?Desktop (please complete the following information):
Additional context Add any other context about the problem here.