Files
ETB/ETB-FrontEnd/node_modules/@mui/x-date-pickers/internals/models/muiPickersAdapter.d.ts
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

16 lines
586 B
TypeScript

import { IUtils } from '@date-io/core/IUtils';
// TODO: Maybe we should add the same constraint.
// @ts-ignore TDate in our codebase does not have the `ExtendableDateType` constraint.
export type MuiPickersAdapter<TDate> = IUtils<TDate>;
export type MuiDateSectionName = 'day' | 'month' | 'year' | 'hour' | 'minute' | 'second' | 'am-pm';
export type MuiFormatTokenMap = { [formatToken: string]: MuiDateSectionName };
export interface MuiPickerFieldAdapter<TDate> extends MuiPickersAdapter<TDate> {
formatTokenMap: MuiFormatTokenMap;
expandFormat: (format: string) => string;
}