diff options
Diffstat (limited to 'lib/autoInject.js')
-rw-r--r-- | lib/autoInject.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/autoInject.js b/lib/autoInject.js index 004cfda..996fceb 100644 --- a/lib/autoInject.js +++ b/lib/autoInject.js @@ -54,6 +54,7 @@ function parseParams(func) { * the tasks have been completed. It receives the `err` argument if any `tasks` * pass an error to their callback, and a `results` object with any completed * task results, similar to `auto`. + * @returns {Promise} a promise, if no callback is passed * @example * * // The example from `auto` can be rewritten as follows: @@ -142,5 +143,5 @@ export default function autoInject(tasks, callback) { } }); - auto(newTasks, callback); + return auto(newTasks, callback); } |