Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/hooks/src/useDatepicker/useDatepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface OnDatesChangeProps {
endDate: Date | null
}

export type FirstDayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6
export type FirstDayOfWeek = 6 | 0 | 1 | 2 | 3 | 4 | 5

export interface UseDatepickerProps {
onDatesChange(data: OnDatesChangeProps): void
Expand Down
2 changes: 1 addition & 1 deletion packages/hooks/src/useMonth/useMonth.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import getDay from 'date-fns/getDay'
import startOfMonth from 'date-fns/startOfMonth'
import startOfWeek from 'date-fns/startOfWeek'

type FirstDayOfWeek = 0 | 1 | 2 | 3 | 4 | 5 | 6
type FirstDayOfWeek = 6 | 0 | 1 | 2 | 3 | 4 | 5
export interface GetWeekdayLabelsProps {
firstDayOfWeek?: FirstDayOfWeek
weekdayLabelFormat?(date: Date): string
Expand Down