diff --git a/README.md b/README.md index 8ad0800..ff825c9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,9 @@ * [tryCatchCore](#trycatchcore) - [Related](#related) - [Contributing](#contributing) +- [Charlike Make Reagent](#charlike-make-reagent) + +_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_ ## Install ``` @@ -71,13 +74,14 @@ Guarantees. This package gives you guarantees that you will get correct result a ## API -### [tryCatchCore](index.js#L70) +### [tryCatchCore](index.js#L71) > Executes given `fn` and pass results/errors to the `callback` if given, otherwise returns a thunk. **Params** * `` **{Function}**: function to call * `[cb]` **{Function}**: done callback to be used +* `[opts]` **{Object}**: optional options passed to [try-catch-callback][] * `returns` **{Function}** `thunk`: only if `cb` is not a function **Example** diff --git a/index.js b/index.js index 177dc79..acf8527 100644 --- a/index.js +++ b/index.js @@ -63,6 +63,7 @@ var utils = require('./utils') * * @param {Function} `` function to call * @param {Function} `[cb]` done callback to be used + * @param {Object} `[opts]` optional options passed to [try-catch-callback][] * @return {Function} `thunk` only if `cb` is not a function * @api public */