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 23d3471 commit 94e3079
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
node-version: 20.x

- name: Install dependencies
run: yarn install
run: yarn install && yarn link

- name: Install types dependencies
run: yarn --cwd types install && yarn --cwd types link react-datepicker
Expand Down
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 94e3079

Please sign in to comment.