Skip to content

Commit

Permalink
Error of typings: renderDay function (#805)
Browse files Browse the repository at this point in the history
The second argument of function `renderDay(date, modifiers)` should be of type `DayModifiers` instead of type `Modifiers`.
  • Loading branch information
srigaux authored and gpbl committed Sep 27, 2018
1 parent 1a75b44 commit 39ad48e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/props.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export interface DayPickerProps {
e: React.MouseEvent<HTMLDivElement>
): void;
pagedNavigation?: boolean;
renderDay?(date: Date, modifiers: Modifiers): React.ReactNode;
renderDay?(date: Date, modifiers: DayModifiers): React.ReactNode;
renderWeek?(weekNumber: number, week: Date[], month: Date): React.ReactNode;
reverseMonths?: boolean;
selectedDays?: Modifier | Modifier[];
Expand Down

0 comments on commit 39ad48e

Please sign in to comment.