From ed940d7121cba9650c8c6ce926c221eb6c08e6ed Mon Sep 17 00:00:00 2001 From: Uzlopak Date: Mon, 14 Aug 2023 15:35:25 +0200 Subject: [PATCH] chore: jsdoc for debug (#228) --- lib/debug.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/debug.js b/lib/debug.js index 4519ad5..5eccad3 100644 --- a/lib/debug.js +++ b/lib/debug.js @@ -2,6 +2,18 @@ const { debuglog } = require('util') +/** + * @callback DebugLogger + * @param {string} msg + * @param {...unknown} param + * @returns {void} + */ + +/** + * @type {DebugLogger} + */ +const debug = debuglog('avvio') + module.exports = { - debug: debuglog('avvio') + debug }