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.
2 parents aed806d + 8d21542 commit cac86e0Copy full SHA for cac86e0
src/index.d.ts
@@ -1,6 +1,6 @@
1
interface TimerSettings {
2
autoStart?: boolean;
3
- expiryTimestamp: number;
+ expiryTimestamp: Date;
4
onExpire?: () => void;
5
}
6
@@ -13,7 +13,7 @@ interface TimerResult {
13
start: () => void;
14
pause: () => void;
15
resume: () => void;
16
- restart: (newExpiryTimestamp: number, autoStart?: boolean) => void;
+ restart: (newExpiryTimestamp: Date, autoStart?: boolean) => void;
17
18
19
export function useTimer(settings: TimerSettings): TimerResult
0 commit comments