-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
97f1049
commit 7d0e90a
Showing
6 changed files
with
104 additions
and
104 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
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,6 +1,6 @@ | ||
import { Timeout, Interval } from "./index.d.ts"; | ||
|
||
interface Date { | ||
static Timeout: Timeout; | ||
static Interval: Interval; | ||
} | ||
static Timeout: Timeout; | ||
static Interval: Interval; | ||
} |
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,3 +1,3 @@ | ||
var ti = require("./"); | ||
Date.Timeout = ti.Timeout; | ||
Date.Interval = ti.Interval; | ||
Date.Interval = ti.Interval; |
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,24 +1,24 @@ | ||
export declare class Timeout { | ||
public constructor(callback: () => void, timeMS: number, autoStart: boolean); | ||
public start(): this; | ||
public stop(): this; | ||
public pause(): this; | ||
public readonly state: 0 | 1 | 2 | 3; | ||
public readonly currentTime: number; | ||
public readonly timeLeft: number; | ||
public constructor(callback: () => void, timeMS: number, autoStart: boolean); | ||
public start(): this; | ||
public stop(): this; | ||
public pause(): this; | ||
public readonly state: 0 | 1 | 2 | 3; | ||
public readonly currentTime: number; | ||
public readonly timeLeft: number; | ||
} | ||
export declare class Interval { | ||
public constructor(callback: () => void, timeMS: number, autoStart: boolean); | ||
public start(): this; | ||
public stop(): this; | ||
public pause(): this; | ||
public readonly state: 0 | 1 | 2; | ||
public readonly currentTime: number; | ||
public readonly timeLeft: number; | ||
public constructor(callback: () => void, timeMS: number, autoStart: boolean); | ||
public start(): this; | ||
public stop(): this; | ||
public pause(): this; | ||
public readonly state: 0 | 1 | 2; | ||
public readonly currentTime: number; | ||
public readonly timeLeft: number; | ||
} | ||
export enum TimerState { | ||
Reset = 0, | ||
Running = 1, | ||
Paused = 2, | ||
Done = 3 | ||
Reset = 0, | ||
Running = 1, | ||
Paused = 2, | ||
Done = 3 | ||
} |
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
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