Skip to content

Commit 0dd7e8c

Browse files
committed
fix(types): PropsWithChildren type argument issue
1 parent 8b3f157 commit 0dd7e8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/calendar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export interface ReactDatePickerCustomHeaderProps {
103103
nextYearButtonDisabled: boolean;
104104
}
105105

106-
type CalendarProps = React.PropsWithChildren &
106+
type CalendarProps = React.PropsWithChildren<
107107
Omit<
108108
YearDropdownProps,
109109
"date" | "onChange" | "year" | "minDate" | "maxDate"
@@ -205,7 +205,8 @@ type CalendarProps = React.PropsWithChildren &
205205
} & Pick<YearDropdownProps, "maxDate" | "minDate"> &
206206
Pick<YearProps, "maxDate" | "minDate"> &
207207
Pick<MonthProps, "maxDate" | "minDate">)
208-
);
208+
)
209+
>
209210

210211
interface CalendarState
211212
extends Pick<YearProps, "selectingDate">,

0 commit comments

Comments
 (0)