-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Albert González
committed
Aug 29, 2023
1 parent
ca99edb
commit c7c760b
Showing
7 changed files
with
67 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { Precision, Timer, TimerValues } from 'easytimer.js'; | ||
interface TimerHookConfig { | ||
startValues?: TimerValues; | ||
target?: TimerValues; | ||
precision?: Precision; | ||
countdown?: boolean; | ||
updateWhenTargetAchieved?: boolean; | ||
} | ||
declare type TimerHookReturn = [Timer, boolean]; | ||
declare const useTimer: ({ startValues, target, precision, countdown, updateWhenTargetAchieved, }?: TimerHookConfig) => TimerHookReturn; | ||
export default useTimer; | ||
import { Precision, Timer, TimerValues } from 'easytimer.js'; | ||
interface TimerHookConfig { | ||
startValues?: TimerValues; | ||
target?: TimerValues; | ||
precision?: Precision; | ||
countdown?: boolean; | ||
updateWhenTargetAchieved?: boolean; | ||
} | ||
type TimerHookReturn = [Timer, boolean]; | ||
declare const useTimer: ({ startValues, target, precision, countdown, updateWhenTargetAchieved, }?: TimerHookConfig) => TimerHookReturn; | ||
export default useTimer; |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters