Skip to content

Commit

Permalink
Update jsDoc for useCountdown
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarD authored Nov 25, 2024
1 parent 2066727 commit 405f0a8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/usehooks-ts/src/useCountdown/useCountdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ type CountdownControllers = {
* @see [Documentation](https://usehooks-ts.com/react-hook/use-countdown)
* @example
* ```tsx
* const [counter, { start, stop, reset }] = useCountdown({
* countStart: 10,
* intervalMs: 1000,
* isIncrement: false,
* });
* const [counter, { startCountdown, stopCountdown, resetCountdown }] =
* useCountdown({useCountdown({
* countStart: 10,
* intervalMs: 1000,
* isIncrement: false,
* });
* ```
*/
export function useCountdown({
Expand Down

0 comments on commit 405f0a8

Please sign in to comment.