From e3b86107f156f5990de83fba397c0af764fc7ed5 Mon Sep 17 00:00:00 2001 From: Aleksey Kozlenkov Date: Wed, 12 Jun 2024 12:14:08 +0200 Subject: [PATCH] Fix getYearRange return type for date-fns-v3-jalali adapter --- .../src/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-date-pickers/src/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.ts b/packages/x-date-pickers/src/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.ts index b417b7055f114..3f932ad50edb0 100644 --- a/packages/x-date-pickers/src/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.ts +++ b/packages/x-date-pickers/src/AdapterDateFnsJalaliV3/AdapterDateFnsJalaliV3.ts @@ -385,7 +385,7 @@ export class AdapterDateFnsJalali return getWeek(date, { locale: this.locale }); }; - public getYearRange = ([start, end]: [Date, Date]): Date => { + public getYearRange = ([start, end]: [Date, Date]): Date[] => { const startDate = this.startOfYear(start); const endDate = this.endOfYear(end); const years: Date[] = [];