mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
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).
31 lines
760 B
TypeScript
31 lines
760 B
TypeScript
// 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;
|
|
} |