Skip to content

Commit

Permalink
fix types (for v6.3.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki0410-dev committed Mar 14, 2024
1 parent 34ccb8b commit cdc74f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/react-datepicker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export interface ReactDatePickerProps<
disabledKeyboardNavigation?: boolean | undefined;
dropdownMode?: "scroll" | "select" | undefined;
endDate?: Date | null | undefined;
excludeDates?: Date[] | Array<{ date: Date; message: string }> | undefined;
excludeDates?: Date[] | Array<{ date: Date; message?: string }> | undefined;
excludeDateIntervals?: Array<{ start: Date; end: Date }> | undefined;
excludeTimes?: Date[] | undefined;
filterDate?(date: Date): boolean;
Expand Down Expand Up @@ -126,6 +126,7 @@ export interface ReactDatePickerProps<
): void;
onChangeRaw?(event: React.FocusEvent<HTMLInputElement>): void;
onClickOutside?(event: React.MouseEvent<HTMLDivElement>): void;
usePointerEvent?: boolean;
onDayMouseEnter?: ((date: Date) => void) | undefined;
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onInputClick?(): void;
Expand Down
1 change: 1 addition & 0 deletions types/types.tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const topLogger = {
onChange={(date: Date | [Date | null, Date | null] | null) => {}}
onChangeRaw={(event) => null}
onClickOutside={(event) => null}
usePointerEvent
onDayMouseEnter={(date: Date) => {}}
onFocus={(event) => null}
onInputClick={() => null}
Expand Down

0 comments on commit cdc74f9

Please sign in to comment.