Timer.d.ts 542 B

123456789101112131415
  1. import * as React from 'react';
  2. import type { StatisticProps } from './Statistic';
  3. import type { FormatConfig, valueType } from './utils';
  4. export type TimerType = 'countdown' | 'countup';
  5. export interface StatisticTimerProps extends FormatConfig, StatisticProps {
  6. type: TimerType;
  7. format?: string;
  8. /**
  9. * Only to be called when the type is `countdown`.
  10. */
  11. onFinish?: () => void;
  12. onChange?: (value?: valueType) => void;
  13. }
  14. declare const StatisticTimer: React.FC<StatisticTimerProps>;
  15. export default StatisticTimer;