UNPKG

@mui/x-date-pickers

Version:

The community edition of the MUI X Date and Time Picker components.

18 lines 967 B
import type { MakeRequired } from '@mui/x-internals/types'; import { Validator } from "./useValidation.mjs"; import { BaseTimeValidationProps, TimeValidationProps } from "../internals/models/validation.mjs"; import { TimeValidationError } from "../models/index.mjs"; import { PickerValue } from "../internals/models/index.mjs"; /** * Validation props used by the Time Picker, Time Field and Clock components. */ export interface ExportedValidateTimeProps extends BaseTimeValidationProps, TimeValidationProps {} /** * Validation props as received by the validateTime method. */ export interface ValidateTimeProps extends MakeRequired<ExportedValidateTimeProps, ValidateTimePropsToDefault> {} /** * Name of the props that should be defaulted before being passed to the validateTime method. */ export type ValidateTimePropsToDefault = keyof BaseTimeValidationProps; export declare const validateTime: Validator<PickerValue, TimeValidationError, ValidateTimeProps>;