You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1003 B
23 lines
1003 B
import * as React from 'react';
|
|
import { StatisticProps } from './Statistic';
|
|
import { countdownValueType, FormatConfig } from './utils';
|
|
interface CountdownProps extends StatisticProps {
|
|
value?: countdownValueType;
|
|
format?: string;
|
|
onFinish?: () => void;
|
|
}
|
|
declare class Countdown extends React.Component<CountdownProps, {}> {
|
|
static defaultProps: Partial<CountdownProps>;
|
|
countdownId?: number;
|
|
componentDidMount(): void;
|
|
componentDidUpdate(): void;
|
|
componentWillUnmount(): void;
|
|
syncTimer: () => void;
|
|
startTimer: () => void;
|
|
stopTimer: () => void;
|
|
formatCountdown: (value: countdownValueType, config: FormatConfig) => string;
|
|
valueRender: (node: React.ReactElement<HTMLDivElement>) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>;
|
|
render(): JSX.Element;
|
|
}
|
|
export default Countdown;
|