Skip to content

Commit

Permalink
style(Types): fix mistyping
Browse files Browse the repository at this point in the history
  • Loading branch information
lemoustachiste committed Oct 15, 2024
1 parent 5d7b6e2 commit d74db96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inspectors/validateDateFormat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d74db96

Please sign in to comment.