Skip to content

Commit

Permalink
Change state to use TimerState
Browse files Browse the repository at this point in the history
  • Loading branch information
blaumeise20 committed Jan 27, 2021
1 parent c3ae9ab commit f90d1cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class Timeout {
public state: 0 | 1 | 2 | 3;
public state: TimerState;
public currentTime: number;
public get timeLeft(): number {
if (this.state == 0 || this.state == 3) return 0;
Expand Down Expand Up @@ -90,7 +90,7 @@ export class Timeout {


export class Interval {
public state: 0 | 1 | 2;
public state: TimerState;
public currentTime: number;
public get timeLeft(): number {
if (this.state == 0) return 0;
Expand Down

0 comments on commit f90d1cf

Please sign in to comment.