Mention extra exports in the documentation #332
bartbutenaers
started this conversation in
Ideas
Replies: 1 comment
-
This line doesn't work in typescript. return reject(new FtpServer.ftpErrors.GeneralError('Invalid username or password', 401)); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear,
In the example on the readme page, the following statement is being used:
That error class is being implemented in errors.js, so I get this exception when running this code snippet:
After some digging in this repository, I found that the errors are exported here:
So my problem was solved by rewriting the statement in the example code like this:
It would be nice if somebody could adjust the readme page to explain how the imports can be used.
Can create a pull request myself, but then it will have to wait until my other PR is merged (because I made those changes on my fork's master branch...).
Thanks!!
Bart
Beta Was this translation helpful? Give feedback.
All reactions