From c644f56b7e48361cbce3ada14bc040162e50b449 Mon Sep 17 00:00:00 2001 From: "Mx. Corey Frang" Date: Wed, 17 Jul 2024 11:37:04 -0400 Subject: [PATCH] prefer lowercase string and number type (seems to be tsc standard) --- src/shared/times-option.js | 4 ++-- src/shared/types.js | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/shared/times-option.js b/src/shared/times-option.js index 82ee7d3..df80676 100644 --- a/src/shared/times-option.js +++ b/src/shared/times-option.js @@ -23,7 +23,7 @@ const timesDefaults = { ...timesOption }; /** * Convert from 'afterNav' to 'time-after-nav'. * @param {keyof AriaATCIShared.timesOption} optionName - * @returns String + * @returns string */ function makeSnakeCasedOption(optionName) { const snakeCased = optionName.replace(/[A-Z]/g, cap => '-' + cap.toLowerCase()); @@ -34,7 +34,7 @@ function makeSnakeCasedOption(optionName) { /** * Create a yargs description for the specified timesOption. * @param {keyof AriaATCIShared.timesOption} optionName Key from timesOption - * @param {String} describe Description to be used in --show-help + * @param {string} describe Description to be used in --show-help */ function addOptionConfig(optionName, describe) { timesOptionsConfig[makeSnakeCasedOption(optionName)] = { diff --git a/src/shared/types.js b/src/shared/types.js index efcc49b..8df72e0 100644 --- a/src/shared/types.js +++ b/src/shared/types.js @@ -50,9 +50,9 @@ /** * @typedef AriaATCIShared.timesOption - * @property {Number} afterNav Timeout used after navigation to collect and discard speech. - * @property {Number} afterKeys Timeout used to wait for speech to finish after pressing keys. - * @property {Number} testSetup Timeout used after pressing test setup button to collect and discard speech. - * @property {Number} modeSwitch Timeout used after switching modes to check resulting speech (NVDA). - * @property {Number} docReady Timeout used waiting for document ready (Safari). + * @property {number} afterNav Timeout used after navigation to collect and discard speech. + * @property {number} afterKeys Timeout used to wait for speech to finish after pressing keys. + * @property {number} testSetup Timeout used after pressing test setup button to collect and discard speech. + * @property {number} modeSwitch Timeout used after switching modes to check resulting speech (NVDA). + * @property {number} docReady Timeout used waiting for document ready (Safari). */