@mui/x-date-pickers-pro
Version:
The Pro plan edition of the MUI X Date and Time Picker components.
17 lines • 983 B
TypeScript
import type { MakeRequired } from '@mui/x-internals/types';
import { Validator } from '@mui/x-date-pickers/validation';
import { TimeValidationProps, BaseTimeValidationProps, PickerRangeValue } from '@mui/x-date-pickers/internals';
import { TimeRangeValidationError } from "../models/index.js";
/**
* Validation props used by the Time Range Picker and Time Range Field.
*/
export interface ExportedValidateTimeRangeProps extends BaseTimeValidationProps, TimeValidationProps {}
/**
* Validation props as received by the validateTimeRange method.
*/
export interface ValidateTimeRangeProps extends MakeRequired<ExportedValidateTimeRangeProps, ValidateTimeRangePropsToDefault> {}
/**
* Name of the props that should be defaulted before being passed to the validateTimeRange method.
*/
export type ValidateTimeRangePropsToDefault = keyof BaseTimeValidationProps;
export declare const validateTimeRange: Validator<PickerRangeValue, TimeRangeValidationError, ValidateTimeRangeProps>;