Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: updated jsdoc for the after function
  • Loading branch information
bizob2828 committed May 22, 2024
commit d023fd0317df7bae47b8fc73f90503692309a7f4
17 changes: 10 additions & 7 deletions lib/shim/specs/recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ const WrapSpec = require('./wrap')
* The instrumented function must have been invoked synchronously.
*
* @typedef {Function} SpecAfterFunction
* @param {object} shim The shim used to instrument the external library.
* @param {Function} fn The function/method from the external library being
* @param {Object} params params to function
* @param {object} params.shim The shim used to instrument the external library.
* @param {Function} params.fn The function/method from the external library being
* instrumented.
* @param {string} name The name of the current function.
* @param {Error|null} error If the instrumented function threw an error, this
* will be that error.
* @param {*} value The result returned by the instrumented function.
* @param {TraceSegment} segment The segment used while instrumenting the
* @param {string} params.name The name of the current function.
* @param {Error|null} [params.error] If the instrumented function threw an error, this
* will be that error. In the case of a callback this will be omitted.
* @param {Array} [params.args] arguments passed to a callback function getting instrumented.
* @param {*} [params.result] The result returned by the instrumented function. In the case of a wrapped
* callback, the data needed is in `params.args`.
* @param {TraceSegment} params.segment The segment used while instrumenting the
* function.
*/

Expand Down