Improve documentation
delvedor opened this issue · 5 comments
delvedor commented
At the moment the documentation is almost complex as the actual code, we should fix that.
poupryc commented
Also for the app.use(func, [opts])
:
Loads one or more functions asynchronously. The function must have the signature: instance, options, done
Is it an inconsistency or misunderstanding on my part that the asynchronous function does not respect the signature?
async function plugin (server, opts) {} // without done
PS: This is to help me in writing Typescript definitions ^^
mcollina commented
As said the docs can be improved. There is no need for done
with async functions.
minemax-ua commented
The documentation definitely needs a complete overhaul.
mcollina commented
Would you like to help?
minemax-ua commented
Would you like to help?
I prefer to help with something I know very well, so it's rather No.