We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8018222 commit 97c0c7cCopy full SHA for 97c0c7c
src/index.d.ts
@@ -12,7 +12,7 @@ interface TimerResult {
12
start: () => void;
13
pause: () => void;
14
resume: () => void;
15
- restart: (newExpiryTimestamp: number) => void;
+ restart: (newExpiryTimestamp: number, autoStart?: boolean) => void;
16
}
17
18
export function useTimer(settings: TimerSettings): TimerResult
@@ -30,7 +30,7 @@ interface StopwatchResult {
30
isRunning: boolean;
31
32
33
- reset: () => void;
+ reset: (offsetTimestamp?: number, autoStart?: boolean) => void;
34
35
36
export function useStopwatch(settings?: StopwatchSettings): StopwatchResult
0 commit comments