shineout
Version:
A components library for React
9 lines (8 loc) • 560 B
TypeScript
import type { DatePickerProps as UnStyledDatePickerProps, DateTimeType } from '@sheinx/base';
import { GetWithFieldProps } from '../hooks/use-field-common';
export type DatePickerValueType = DateTimeType | DateTimeType[];
export type BaseDatePickerProps<Value extends DatePickerValueType> = Omit<UnStyledDatePickerProps<Value>, 'jssStyle'>;
/**
* @title DatePicker
*/
export type DatePickerProps<Value extends DatePickerValueType = DatePickerValueType> = GetWithFieldProps<BaseDatePickerProps<Value>, BaseDatePickerProps<Value>['value'], string | string[]>;