useLocale.d.ts 466 B

123456
  1. import type { Locale, SharedTimeProps } from '../interface';
  2. export declare function fillTimeFormat(showHour: boolean, showMinute: boolean, showSecond: boolean, showMillisecond: boolean, showMeridiem: boolean): string;
  3. /**
  4. * Fill locale format as start up
  5. */
  6. export default function useLocale<DateType extends object>(locale: Locale, showProps: Pick<SharedTimeProps<DateType>, 'showHour' | 'showMinute' | 'showSecond' | 'showMillisecond' | 'use12Hours'>): Locale;