esdoc-plugin-async-to-sync
This plugin copies documentation from the async version of methods to their sync equivalent, so that you don't have to write the same documentation twice constantly.
For example:
/** * Gets a file from disk. * * @param * * @return */ {} {}
Now becomes to ESDoc as if you had written:
/** * Gets a file from disk. * * @param * * @return */ {} /** * Gets a file from disk. * * @param * * @return */ {}
Documentation substitution occurs if:
- The method name ends in 'Sync'
- There is a method with the same name sans-'Sync'
- The sync method doesn't have documentation and the async one does
Does this handle callbacks?
Ugh no, PRs welcome