From: Ardis Lu Date: Fri, 13 Jun 2025 06:27:31 +0000 (-0700) Subject: Delete redundant JSDoc type annotations X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=8834eb9ce3e10b0cb50d0a4f78f37baeedb0b8e1;p=seed-phrase-transposer Delete redundant JSDoc type annotations The types are already included in the TypeScript, so use TSDoc syntax. --- diff --git a/main.ts b/main.ts index 2dcc101..edc54fc 100644 --- a/main.ts +++ b/main.ts @@ -1,7 +1,7 @@ /** * Normalizes a seed phrase to remove extraneous whitespace, then splits the words into an array. - * @param {string} input A seed phrase with any number of whitespace in-between words. - * @returns {Array} An array of the seed phrase words. + * @param input A seed phrase with any number of whitespace in-between words. + * @returns An array of the seed phrase words. */ export function parseInput(input: string | null): Array { if (input === null) { @@ -16,9 +16,9 @@ export function parseInput(input: string | null): Array { /** * Gets the permutations of a seed phrase that was recorded from a transposition error. - * @param {Array} words An array of words. - * @param {number} columns The number of columns in the grid that the words were displayed in. - * @returns {Array} An array of the permutations that the words could take. + * @param words An array of words. + * @param columns The number of columns in the grid that the words were displayed in. + * @returns An array of the permutations that the words could take. */ export function getPermutations( words: Array, @@ -50,8 +50,8 @@ export function getPermutations( /** * Gets all factors of a number that are >= 2 and not a multiple of another factor (the "lower" factors). - * @param {number} num A number to get the lower factors of. - * @returns {Array} An array of the lower factors of the input. + * @param num A number to get the lower factors of. + * @returns An array of the lower factors of the input. */ export function getLowerFactors(num: number): Array { const lowerFactors = [];