Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/utils/validation.ts
Original file line number Diff line number Diff line change
@@ -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)) {
Expand Down
Loading