1
0
Fork 0
react-playground/node_modules/@mui/x-date-pickers/validation/validateDateTime.d.ts
Techognito fc0f69dacb Added Statistics calculation
Statistics now show calculated values
2025-09-04 17:30:00 +02:00

19 lines
No EOL
1.1 KiB
TypeScript

import { Validator } from "./useValidation.js";
import { ExportedValidateDateProps, ValidateDateProps, ValidateDatePropsToDefault } from "./validateDate.js";
import { ExportedValidateTimeProps, ValidateTimeProps, ValidateTimePropsToDefault } from "./validateTime.js";
import { DateTimeValidationError } from "../models/index.js";
import { DateTimeValidationProps } from "../internals/models/validation.js";
import { PickerValue } from "../internals/models/index.js";
/**
* Validation props used by the Date Time Picker and Date Time Field components.
*/
export interface ExportedValidateDateTimeProps extends ExportedValidateDateProps, ExportedValidateTimeProps, DateTimeValidationProps {}
/**
* Validation props as received by the validateDateTime method.
*/
export interface ValidateDateTimeProps extends ValidateDateProps, ValidateTimeProps {}
/**
* Name of the props that should be defaulted before being passed to the validateDateTime method.
*/
export type ValidateDateTimePropsToDefault = ValidateDatePropsToDefault | ValidateTimePropsToDefault;
export declare const validateDateTime: Validator<PickerValue, DateTimeValidationError, ValidateDateTimeProps>;