From 8834eb9ce3e10b0cb50d0a4f78f37baeedb0b8e1 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Thu, 12 Jun 2025 23:27:31 -0700 Subject: [PATCH] Delete redundant JSDoc type annotations The types are already included in the TypeScript, so use TSDoc syntax. --- main.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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 = []; -- 2.47.3