Created
October 9, 2020 12:54
-
-
Save alexmachina/10c8b19a92c68b485e1146067ceab9f9 to your computer and use it in GitHub Desktop.
Timer type declarations
This file contains hidden or 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
declare interface ITimerState { | |
initialTime: string; | |
time: string; | |
status: string; | |
ms: number; | |
} | |
declare interface ITimer extends ITimerState { | |
play: () => void; | |
pause: () => void; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment