amis-rpc-design/node_modules/rc-picker/es/hooks/useValueTexts.d.ts

9 lines
433 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type { GenerateConfig } from '../generate';
import type { CustomFormat, Locale } from '../interface';
export type ValueTextConfig<DateType> = {
formatList: (string | CustomFormat<DateType>)[];
generateConfig: GenerateConfig<DateType>;
locale: Locale;
};
export default function useValueTexts<DateType>(value: DateType | null, { formatList, generateConfig, locale }: ValueTextConfig<DateType>): [string[], string];