Skip to content

Commit

Permalink
fix(types): argument of type 'Date' not assignable to parameter of ty…
Browse files Browse the repository at this point in the history
…pe 'never' (#2542)
  • Loading branch information
cosminpsk authored Oct 19, 2024
1 parent f2f737e commit 5934fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/getWeekdays.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function getWeekdays(
? dateLib.startOfISOWeek(date)
: dateLib.startOfWeek(date, { locale, weekStartsOn });

const days = [];
const days: Date[] = [];
for (let i = 0; i < 7; i++) {
const day = dateLib.addDays(start, i);
days.push(day);
Expand Down

0 comments on commit 5934fd7

Please sign in to comment.