Skip to content

Update DatePicker: fix type errors. #149

Update DatePicker: fix type errors.

Update DatePicker: fix type errors. #149

Triggered via push December 10, 2024 14:27
Status Failure
Total duration 48s
Artifacts

ci.yaml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 1 warning
build (22.x): src/components/forms/controls/DatePicker/DatePickerRange.tsx#L59
Type '{ ref?: Ref<DatePicker> | undefined; children?: ReactNode; form?: string; title?: string; key?: Key | null | undefined; autoFocus?: boolean; id?: string; tabIndex?: number; onFocus?: FocusEventHandler<HTMLElement>; onBlur?: FocusEventHandler<HTMLElement>; onKeyDown?: (event: KeyboardEvent<HTMLElement>) => void; onSelect?: (date: Date | null, event?: KeyboardEvent<HTMLElement> | MouseEvent<HTMLElement, MouseEvent> | undefined) => void; inline?: boolean; date?: Date; name?: string; icon?: ReactNode; value?: string; disabled?: boolean; open?: boolean; autoComplete?: string; readOnly?: boolean; required?: boolean; minDate?: Date; maxDate?: Date; scrollableYearDropdown?: boolean; yearDropdownItemNumber?: number; adjustDateOnChange?: boolean; dropdownMode?: "select" | "scroll"; locale?: Locale; useShortMonthInDropdown?: boolean; scrollableMonthYearDropdown?: boolean; dateFormat: string | string[]; selectingDate?: Date; onYearMouseEnter?: (event: MouseEvent<HTMLDivElement, MouseEvent>, year: number) => void; onYearMouseLeave?: (event: MouseEvent<HTMLDivElement, MouseEvent>, year: number) => void; excludeDates?: { date: Date; message?: string; }[] | Date[]; includeDates?: Date[]; filterDate?: (date: Date) => boolean; disabledKeyboardNavigation?: boolean; endDate?: Date; selected?: Date | null; usePointerEvent?: boolean; renderYearContent?: (year: number) => ReactNode; selectsEnd?: boolean; selectsStart?: boolean; startDate?: Date; yearItemNumber?: number; yearClassName?: (date: Date) => string; onDayMouseEnter?: (date: Date) => void; chooseDayAriaLabelPrefix?: string | undefined; disabledDayAriaLabelPrefix?: string | undefined; excludeDateIntervals?: { start: Date; end: Date; }[]; includeDateIntervals?: { start: Date; end: Date; }[]; dayClassName?: (date: Date) => string; highlightDates?: (Date | HighlightDate)[]; holidays?: Holiday[]; showWeekPicker?: boolean; selectsDisabledDaysInRange?: boolean; selectedDates?: Date[]; renderDayContents?: (day: number, date: Date) => ReactNode; containerRef?: RefObject<HTMLDivElement>; calendarStartDay?: Day; shouldCloseOnSelect?: boolean; formatWeekNumber?: (date: Date) => number; onWeekSelect?: (day: Date, weekNumber: number, event: MouseEvent<HTMLDivElement, MouseEvent>) => void; monthClassName?: (date: Date) => string; renderMonthContent?: (m: number, shortMonthText: string, fullMonthText: string, day: Date) => ReactNode; renderQuarterContent?: (q: number, shortQuarter: string) => ReactNode; fixedHeight?: boolean; peekNextMonth?: boolean; showWeekNumbers?: boolean | undefined; showMonthYearPicker?: boolean; showFullMonthYearPicker?: boolean; showTwoColumnMonthYearPicker?: boolean; showFourColumnMonthYearPicker?: boolean; showQuarterYearPicker?: boolean; weekAriaLabelPrefix?: string | undefined; minTime?: Date; maxTime?: Date; excludeTimes?: Date[]; includeTimes?: Date[]; filterTime?: (time: Date) => boolean; openToDate?: Date; timeClassName?: (time: Date) => string; todayButton?: ReactNode; timeCaption?: string; injectTimes?: Date[]; showTimeSelectOnly?: boolean; showTimeCaption?: boolean; timeInputLabel?: string; customTimeInput?: any; showYearPicker?: boolean; showTimeSelect?: boolean; showTimeInput?: boolean; showYearDropdown?: boolean; showMonthDropdown?: boolean; useWeekdaysShort?: boolean; forceShowMonthNavigation?: boolean; showDisabledMonthNavigation?: boolean; formatWeekDay?: (date: string) => string; weekDayClassName?: (date: Date) => string; onMonthChange?: (date: Date) => void; onYearChange?: (date: Date) => void; onMonthMouseLeave?: VoidFunction; weekLabel?: string; onClickOutside?: ClickOutsideHandler; previousMonthButtonLabel?: ReactNode; previousYearButtonLabel?: string; previousMonthAriaLabel?: string; previousYearAriaLabel?: string; nextMonthButtonLabel?: ReactNode; nextYearButtonLabel?: string; nextMonthAriaLabel?: string; nextYearAriaLabel?: string; showPreviousMonths?: boolean; monthsShown?: number; renderCustomHeader?: (props: ReactDatePickerCustomHeaderProps) => JSX.Element; monthAriaLabelPrefix?: string | undefined; timeFormat?: string | undefined; timeInterv
build (22.x)
Process completed with exit code 2.
build (22.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636