Skip to content

Commit cac86e0

Browse files
authored
Merge pull request #61 from haleo9000/haleo9000-patch-1
Update index.d.ts
2 parents aed806d + 8d21542 commit cac86e0

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
@@ -1,6 +1,6 @@
11
interface TimerSettings {
22
autoStart?: boolean;
3-
expiryTimestamp: number;
3+
expiryTimestamp: Date;
44
onExpire?: () => void;
55
}
66

@@ -13,7 +13,7 @@ interface TimerResult {
1313
start: () => void;
1414
pause: () => void;
1515
resume: () => void;
16-
restart: (newExpiryTimestamp: number, autoStart?: boolean) => void;
16+
restart: (newExpiryTimestamp: Date, autoStart?: boolean) => void;
1717
}
1818

1919
export function useTimer(settings: TimerSettings): TimerResult

0 commit comments

Comments
 (0)