Skip to content

Commit

Permalink
fix(types): PropsWithChildren type argument issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mertJF committed Nov 12, 2024
1 parent 8b3f157 commit 0dd7e8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export interface ReactDatePickerCustomHeaderProps {
nextYearButtonDisabled: boolean;
}

type CalendarProps = React.PropsWithChildren &
type CalendarProps = React.PropsWithChildren<
Omit<
YearDropdownProps,
"date" | "onChange" | "year" | "minDate" | "maxDate"
Expand Down Expand Up @@ -205,7 +205,8 @@ type CalendarProps = React.PropsWithChildren &
} & Pick<YearDropdownProps, "maxDate" | "minDate"> &
Pick<YearProps, "maxDate" | "minDate"> &
Pick<MonthProps, "maxDate" | "minDate">)
);
)
>

interface CalendarState
extends Pick<YearProps, "selectingDate">,
Expand Down

0 comments on commit 0dd7e8c

Please sign in to comment.