From f90d1cf5fa9481a59d7bcde91565f33aa269b81c Mon Sep 17 00:00:00 2001 From: blaumeise20 <62756994+blaumeise20@users.noreply.github.com> Date: Wed, 27 Jan 2021 19:04:32 +0100 Subject: [PATCH] Change state to use TimerState --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 014a096..32035d0 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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; @@ -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;