amis-rpc-design/node_modules/rc-picker/lib/hooks/useValueTexts.d.ts
2023-10-07 19:42:30 +08:00

9 lines
433 B
TypeScript

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];