Skip to content

Commit

Permalink
fix(internationalized/date): missing endOfWeek overload (adobe#6749)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Lu <[email protected]>
  • Loading branch information
cyyynthia and LFDanLu authored Sep 19, 2024
1 parent 097c8fc commit b2e8ee6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@internationalized/date/src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export function startOfWeek(date: DateValue, locale: string): DateValue {
export function endOfWeek(date: ZonedDateTime, locale: string): ZonedDateTime;
export function endOfWeek(date: CalendarDateTime, locale: string): CalendarDateTime;
export function endOfWeek(date: CalendarDate, locale: string): CalendarDate;
export function endOfWeek(date: DateValue, locale: string): DateValue;
export function endOfWeek(date: DateValue, locale: string): DateValue {
return startOfWeek(date, locale).add({days: 6});
}
Expand Down

0 comments on commit b2e8ee6

Please sign in to comment.