@mui/x-date-pickers-pro
Version:
The Pro plan edition of the MUI X Date and Time Picker components.
18 lines • 1.07 kB
TypeScript
import type { MakeRequired } from '@mui/x-internals/types';
import { Validator } from '@mui/x-date-pickers/validation';
import { BaseDateValidationProps, PickerRangeValue } from '@mui/x-date-pickers/internals';
import { DayRangeValidationProps } from "../internals/models/dateRange.js";
import { DateRangeValidationError } from "../models/index.js";
/**
* Validation props used by the Date Range Picker, Date Range Field and Date Range Calendar components.
*/
export interface ExportedValidateDateRangeProps extends DayRangeValidationProps, BaseDateValidationProps {}
/**
* Validation props as received by the validateDateRange method.
*/
export interface ValidateDateRangeProps extends MakeRequired<ExportedValidateDateRangeProps, ValidateDateRangePropsToDefault> {}
/**
* Name of the props that should be defaulted before being passed to the validateDateRange method.
*/
export type ValidateDateRangePropsToDefault = keyof BaseDateValidationProps;
export declare const validateDateRange: Validator<PickerRangeValue, DateRangeValidationError, ValidateDateRangeProps>;