-
-
Notifications
You must be signed in to change notification settings - Fork 1
Support async functions #2
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
Comments
Current workaround is to create another function that just calls the async one and to put the comment on top it. /**
* jsdoc comment here
*/
module.exports = function charlike(...args) {
return charlikeOrig(...args);
}; |
Actually the dot comes from js-comments here. |
@olstenlarck what's the issue that you're actually having? Are |
Yea, sorry. /**
* Foo bar baz.
*
* @param {String} `<name>` project name
* @param {String} `<desc>` project description
* @param {Object} `[options]` use `options.locals` to pass more context to template files,
* use `options.engine` for different template engine to be used
* in template files, or pass `options.render` function
* to use your favorite engine
* @return {Promise} if successful, resolved promise with absolute path to the project
* @api public
*/
export default async function charlike(name, desc, options) {
if (typeof name !== 'string') {
throw new TypeError('charlike: expect `name` to be string');
}
// ...
} Does not outputs API. So you can set |
For the sake of simplicity for me, locally i just comment these lines in |
@olstenlarck thanks for the additional information. It looks like the regex in some of the parsers just needs to be updated to also capture |
It seems easy. I may PR soon.
Currently, you can add
@name
, but it always adds dot before the given name. Not sure if exactly this comes from here.The text was updated successfully, but these errors were encountered: