forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery.timer.d.ts
31 lines (25 loc) · 760 Bytes
/
jquery.timer.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Type definitions for jQueryTimer 1.0
// Project: https://github.com/jchavannes/jquery-timer
// Definitions by: Joshua Strobl <https://github.com/JoshStrobl/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
interface JQueryTimer {
// #region Constructors
(action?: Function, time?: Number, autostart?: Boolean): Object;
set(any): Object;
// #endregion
// #region Actions
once(time: Number): Object;
play(reset?: Boolean): Object;
pause(): Object;
stop(): Object;
toggle(reset?: Boolean): Object;
// #endregion
// #region Properties
isActive: Boolean;
remaining: Number;
// #endregion
}
interface JQuery {
timer: JQueryTimer;
}