From 358abe7dc77d11bcbac678d9ebe70b6f2754b44f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=A3=E9=87=8C=E5=A5=BD=E8=84=8F=E4=B8=8D=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5?= Date: Tue, 15 Nov 2022 11:11:45 +0800 Subject: [PATCH] fix(JSDoc): fix JSDoc type for some function --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 6f2d0f8..59dc0e9 100644 --- a/index.js +++ b/index.js @@ -45,6 +45,7 @@ var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i; * decimalPlaces: [number] * fixedDecimals: [boolean] * thousandsSeparator: [string] + * unit: [string] * unitSeparator: [string] * }} [options] bytes options. * @@ -72,7 +73,7 @@ function bytes(value, options) { * @param {number} value * @param {object} [options] * @param {number} [options.decimalPlaces=2] - * @param {number} [options.fixedDecimals=false] + * @param {boolean} [options.fixedDecimals=false] * @param {string} [options.thousandsSeparator=] * @param {string} [options.unit=] * @param {string} [options.unitSeparator=]