Skip to content

Commit 97c0c7c

Browse files
committed
update typescript definitions
1 parent 8018222 commit 97c0c7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface TimerResult {
1212
start: () => void;
1313
pause: () => void;
1414
resume: () => void;
15-
restart: (newExpiryTimestamp: number) => void;
15+
restart: (newExpiryTimestamp: number, autoStart?: boolean) => void;
1616
}
1717

1818
export function useTimer(settings: TimerSettings): TimerResult
@@ -30,7 +30,7 @@ interface StopwatchResult {
3030
isRunning: boolean;
3131
start: () => void;
3232
pause: () => void;
33-
reset: () => void;
33+
reset: (offsetTimestamp?: number, autoStart?: boolean) => void;
3434
}
3535

3636
export function useStopwatch(settings?: StopwatchSettings): StopwatchResult

0 commit comments

Comments
 (0)