mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Adding jQuery.Timer Definitions (Post-Fork Resync)
This is to add the jQuery.Timer definitions and tests, as well as the tscparams that seem to be required (hopefully DefinitelyTyped Travis CI builds will work this time). Modified alert() to be console.log() instead. Readme updated as well (ignore line #1).
This commit is contained in:
Vendored
+31
@@ -0,0 +1,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;
|
||||
}
|
||||
Reference in New Issue
Block a user