From d74db96489b1d231876f5b2e353f0f4ddb710bc1 Mon Sep 17 00:00:00 2001 From: Julien Fraichot Date: Tue, 15 Oct 2024 16:10:11 +0200 Subject: [PATCH] style(Types): fix mistyping --- src/inspectors/validateDateFormat.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);