Skip to content

Commit

Permalink
Fix onComplete type
Browse files Browse the repository at this point in the history
  • Loading branch information
ndresx committed Nov 19, 2022
1 parent 6df039c commit 209501c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Countdown.tsx
Expand Up @@ -31,10 +31,9 @@ export interface CountdownProps
readonly onPause?: CountdownTimeDeltaFn;
readonly onStop?: CountdownTimeDeltaFn;
readonly onTick?: CountdownTimeDeltaFn;
readonly onComplete?: (
timeDelta: CountdownTimeDelta,
completedOnStart: boolean
) => void | LegacyCountdownProps['onComplete'];
readonly onComplete?:
| ((timeDelta: CountdownTimeDelta, completedOnStart: boolean) => void)
| LegacyCountdownProps['onComplete'];
}

export interface CountdownRenderProps extends CountdownTimeDelta {
Expand Down

0 comments on commit 209501c

Please sign in to comment.