minishouyin/node_modules/rc-picker/es/hooks/useLocale.d.ts

7 lines
466 B
TypeScript
Raw Permalink Normal View History

2025-11-12 11:35:57 +08:00
import type { Locale, SharedTimeProps } from '../interface';
export declare function fillTimeFormat(showHour: boolean, showMinute: boolean, showSecond: boolean, showMillisecond: boolean, showMeridiem: boolean): string;
/**
* Fill locale format as start up
*/
export default function useLocale<DateType extends object>(locale: Locale, showProps: Pick<SharedTimeProps<DateType>, 'showHour' | 'showMinute' | 'showSecond' | 'showMillisecond' | 'use12Hours'>): Locale;