UNPKG

antd-fx67ll-test

Version:

这是一个测试着玩的私服antd项目,完全照抄v4.16.6的antd源码,请勿使用,仅做发布测试(因每次发布必须要升版本,如发现版本出入请忽略,与官方无关)

17 lines (16 loc) 713 B
import * as React from 'react'; export declare type valueType = number | string; export declare type countdownValueType = valueType | string; export declare type Formatter = false | 'number' | 'countdown' | ((value: valueType, config?: FormatConfig) => React.ReactNode); export interface FormatConfig { formatter?: Formatter; decimalSeparator?: string; groupSeparator?: string; precision?: number; prefixCls?: string; } export interface CountdownFormatConfig extends FormatConfig { format?: string; } export declare function formatTimeStr(duration: number, format: string): string; export declare function formatCountdown(value: countdownValueType, config: CountdownFormatConfig): string;