We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PropsWithChildren
1 parent 8b3f157 commit 0dd7e8cCopy full SHA for 0dd7e8c
src/calendar.tsx
@@ -103,7 +103,7 @@ export interface ReactDatePickerCustomHeaderProps {
103
nextYearButtonDisabled: boolean;
104
}
105
106
-type CalendarProps = React.PropsWithChildren &
+type CalendarProps = React.PropsWithChildren<
107
Omit<
108
YearDropdownProps,
109
"date" | "onChange" | "year" | "minDate" | "maxDate"
@@ -205,7 +205,8 @@ type CalendarProps = React.PropsWithChildren &
205
} & Pick<YearDropdownProps, "maxDate" | "minDate"> &
206
Pick<YearProps, "maxDate" | "minDate"> &
207
Pick<MonthProps, "maxDate" | "minDate">)
208
- );
+ )
209
+>
210
211
interface CalendarState
212
extends Pick<YearProps, "selectingDate">,
0 commit comments