diff --git a/docs/UX Patterns/Table/Filters.stories.tsx b/docs/UX Patterns/Table/Filters.stories.tsx index 8b3bac047..138eb3423 100644 --- a/docs/UX Patterns/Table/Filters.stories.tsx +++ b/docs/UX Patterns/Table/Filters.stories.tsx @@ -257,7 +257,7 @@ export const WithComplexFilters: Story = { showHour: true, showMinute: true, showSecond: false, - disabledDate: antdDayJS => { + disabledDate: (antdDayJS: any) => { const fourteenDaysInMs = 14 * 24 * 60 * 60 * 1000 return antdDayJS.isBefore(new Date(Date.now() - fourteenDaysInMs)) }, diff --git a/src/components/data-entry/DatePicker/DatePicker.tsx b/src/components/data-entry/DatePicker/DatePicker.tsx index 248410be9..33153ce99 100644 --- a/src/components/data-entry/DatePicker/DatePicker.tsx +++ b/src/components/data-entry/DatePicker/DatePicker.tsx @@ -1,7 +1,9 @@ import { DatePicker as AntDatePicker, type DatePickerProps as AntDatePickerProps } from 'antd' +import type { RangePickerProps as AntRangePickerProps } from 'antd/es/date-picker' import { ConfigProvider } from 'src/components' export interface IDatePickerProps extends AntDatePickerProps {} +export interface IRangePickerProps extends AntRangePickerProps {} export const DatePicker = (props: IDatePickerProps) => { return (