Skip to content

Commit

Permalink
Fix getYearRange return type for date-fns-v3-jalali adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-kozlenkov committed Jun 16, 2024
1 parent e43d8bb commit e3b8610
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];
Expand Down

0 comments on commit e3b8610

Please sign in to comment.