diff --git a/src/inspectors/validateDateFormat.ts b/src/inspectors/validateDateFormat.ts index be3d7311..8fc85626 100644 --- a/src/inspectors/validateDateFormat.ts +++ b/src/inspectors/validateDateFormat.ts @@ -4,7 +4,7 @@ import { SUB_STEPS } from '../domain/verifier/entities/verificationSteps'; import { getText } from '../domain/i18n/useCases'; import type { DatesToValidate } from '../domain/verifier/useCases/getDatesToValidate'; -export default function validateDateFormat (dates: DatesToValidate): void { +export default function validateDateFormat (dates: DatesToValidate[]): void { for (const { dateTimeStamp, property } of dates) { if (!validateDateTimeStamp(dateTimeStamp)) { console.error('Date', dateTimeStamp, 'is not valid:', property);