diff --git a/src/utils/validation.ts b/src/utils/validation.ts index 141ca0f4605..a0a842e5893 100644 --- a/src/utils/validation.ts +++ b/src/utils/validation.ts @@ -1,11 +1,6 @@ import { BANG, chalk } from './command-helpers.js' -/** - * @param {string} exampleCommand - * @returns {(value:string, previous: unknown) => unknown} - */ -// @ts-expect-error TS(7006) FIXME: Parameter 'exampleCommand' implicitly has an 'any'... Remove this comment to see the full error message -export const getGeoCountryArgParser = (exampleCommand) => (arg) => { +export const getGeoCountryArgParser = (exampleCommand: string) => (arg: string) => { // Validate that the arg passed is two letters only for country // See https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes if (!/^[a-z]{2}$/i.test(arg)) {