From 97c0c7ced0aa2822215d2b1052fb8341c9bf9fc0 Mon Sep 17 00:00:00 2001 From: Amr Labib Date: Sat, 17 Apr 2021 16:19:03 +0200 Subject: [PATCH] update typescript definitions --- src/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.d.ts b/src/index.d.ts index c617841..da100a5 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -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 @@ -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