mirror of
https://github.com/documentationjs/documentation.git
synced 2025-12-08 18:23:43 +00:00
* Show callback signatures * Add output test for callback * Reformat is_function * Fix comparator * Use camelCase #818
19 lines
396 B
JavaScript
19 lines
396 B
JavaScript
/**
|
|
* This takes a number and a callback and calls the callback with the number
|
|
* plus 3.
|
|
*
|
|
* @param {Number} n - The number.
|
|
* @param {simpleCallback} cb - The callback.
|
|
*/
|
|
function takesSimpleCallback(n, cb) {
|
|
cb(null, n + 3);
|
|
}
|
|
|
|
/**
|
|
* This callback takes an error and a number.
|
|
*
|
|
* @callback simpleCallback
|
|
* @param {?Error} err - The error.
|
|
* @param {Number} n - The number.
|
|
*/
|