Skip to content

Commit

Permalink
update typescript definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
amrlabib committed Apr 17, 2021
1 parent 8018222 commit 97c0c7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface TimerResult {
start: () => void;
pause: () => void;
resume: () => void;
restart: (newExpiryTimestamp: number) => void;
restart: (newExpiryTimestamp: number, autoStart?: boolean) => void;
}

export function useTimer(settings: TimerSettings): TimerResult
Expand All @@ -30,7 +30,7 @@ interface StopwatchResult {
isRunning: boolean;
start: () => void;
pause: () => void;
reset: () => void;
reset: (offsetTimestamp?: number, autoStart?: boolean) => void;
}

export function useStopwatch(settings?: StopwatchSettings): StopwatchResult
Expand Down

0 comments on commit 97c0c7c

Please sign in to comment.