react-use-countdown/dist/useCountdown.d.ts
Sambo Chea 689ff3cddb
All checks were successful
continuous-integration/drone/push Build is passing
Fixed timeout and dists for build and publish
2021-04-30 19:11:28 +07:00

13 lines
348 B
TypeScript

interface useCountdownOptions {
now?: () => Date;
onEnd?: () => void;
onCount?: (timeLeft: number) => void;
step?: number;
}
interface CountdownHookResult {
timeleft: number;
start: (timeLeft: number) => void;
}
declare function useCountdown(options?: useCountdownOptions): CountdownHookResult;
export default useCountdown;