penguin/AstroJS

Javascript framework for my blog

botanjs/src/externs/System.Cycle.js

raw ยท 625 bytes

/** @constructor */
System.Cycle = function (){}

/**
 * @param {function(): void} callback
 */
System.Cycle.prototype.next = function(callback) {};

/**
 * @param {function(): void} callback
 * @param {number} ms
 */
System.Cycle.prototype.delay = function(callback, ms) {};

/**
 * @param {string} id
 * @param {function(): void} callback
 * @param {number} intvl
 * @return {boolean}
 */
System.Cycle.prototype.perma = function(id, callback, intvl){};

/**
 * @param {function(string): void} callback
 */
System.Cycle.prototype.permaRemove = function(callback) {};

/** @type {System.Tick} */
System.Cycle.prototype.TICK;