Skip to content

Commit 4c34afc

Browse files
committed
Fix type checking of calendarProps and clockProps
1 parent 9b75ced commit 4c34afc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DateTimePicker.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ type DateTimePickerProps = {
9999
value?: LooseValue;
100100
yearAriaLabel?: string;
101101
yearPlaceholder?: string;
102-
};
102+
} & Omit<
103+
React.ComponentPropsWithoutRef<typeof Calendar>,
104+
'className' | 'maxDetail' | 'minDetail' | 'onChange'
105+
> &
106+
Omit<React.ComponentPropsWithoutRef<typeof Clock>, 'value'>;
103107

104108
export default function DateTimePicker(props: DateTimePickerProps) {
105109
const {

0 commit comments

Comments
 (0)