diff --git a/DatePicker/DatePicker.js b/DatePicker/DatePicker.js index cfb30ff688..a036855682 100644 --- a/DatePicker/DatePicker.js +++ b/DatePicker/DatePicker.js @@ -161,7 +161,7 @@ const DatePicker = Pure( * @function * @memberof sandstone/DatePicker * @param {Date} date `Date` to convert - * @returns {String?} Converted date or `null` if `date` is invalid + * @returns {String|null} Converted date or `null` if `date` is invalid */ const dateToLocaleString = (date) => { if (!date) { diff --git a/TimePicker/TimePicker.js b/TimePicker/TimePicker.js index d81ce248dc..dcfdb83f9d 100644 --- a/TimePicker/TimePicker.js +++ b/TimePicker/TimePicker.js @@ -247,7 +247,7 @@ const TimePicker = Pure( * @function * @memberof sandstone/TimePicker * @param {Date} time `Date` to convert - * @returns {String?} Converted date or `null` if `date` is invalid + * @returns {String|null} Converted date or `null` if `date` is invalid */ const timeToLocaleString = (time) => { if (!time) { diff --git a/TooltipDecorator/util.js b/TooltipDecorator/util.js index cb55899357..42e02e3fb8 100644 --- a/TooltipDecorator/util.js +++ b/TooltipDecorator/util.js @@ -156,13 +156,8 @@ const calcOverflow = function (tooltipNode, clientNode, tooltipDirection, edgeKe * * @method * @memberof sandstone/TooltipDecorator - * @param {Object} tooltipNode The `getBoundingClientRect` values for tooltip node * @param {Object} clientNode The `getBoundingClientRect` values for client node - * @param {String} arrowAnchor Anchor position from `adjustAnchor` * @param {String} tooltipDirection Direction of tooltip - * @param {Number} tooltipHeight Tooltip height - * @param {Object} overflow Tooltip's calculated overflow from `calcOverflow` - * @param {Boolean} rtl RTL mode * @returns {Object} Tooltip top and left position * @private */ diff --git a/internal/validators/validators.js b/internal/validators/validators.js index 9fb40b60e1..e29a2b12f1 100644 --- a/internal/validators/validators.js +++ b/internal/validators/validators.js @@ -10,8 +10,6 @@ * * @function * @param {String} msg Event name - * @param {Function} fn Event handler - * @param {Node} [target=`document`] Event listener target * * @returns {undefined} * @memberof sandstone/internal/validators