Skip to content

Commit

Permalink
Fix issue Hacker0x01#5029: [In the src/index.tsx file , changed selec…
Browse files Browse the repository at this point in the history
…tsRange type to boolean instead of never & true]
  • Loading branch information
nur.pavel committed Aug 28, 2024
1 parent f735e60 commit 377784e
Show file tree
Hide file tree
Showing 3 changed files with 1,226 additions and 1,893 deletions.
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"


yarn precommit
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export type DatePickerProps = OmitUnion<
) => void;
} & (
| {
selectsRange?: never;
selectsRange?: boolean;
selectsMultiple?: never;
onChange?: (
date: Date | null,
Expand All @@ -214,7 +214,7 @@ export type DatePickerProps = OmitUnion<
) => void;
}
| {
selectsRange: true;
selectsRange: boolean;
selectsMultiple?: never;
onChange?: (
date: [Date | null, Date | null],
Expand All @@ -224,7 +224,7 @@ export type DatePickerProps = OmitUnion<
) => void;
}
| {
selectsRange?: never;
selectsRange?: boolean;
selectsMultiple: true;
onChange?: (
date: Date[] | null,
Expand Down
Loading

0 comments on commit 377784e

Please sign in to comment.