Skip to content

Commit

Permalink
prefer lowercase string and number type (seems to be tsc standard)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarf committed Jul 17, 2024
1 parent 01d05fb commit c644f56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/shared/times-option.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand All @@ -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)] = {
Expand Down
10 changes: 5 additions & 5 deletions src/shared/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*/

0 comments on commit c644f56

Please sign in to comment.