// Automatically generated from TypeScript type definitions provided by // DefinitelyTyped (https://github.com/DefinitelyTyped/DefinitelyTyped), // which is licensed under the MIT license; see file DefinitelyTyped-LICENSE // in parent directory. // Type definitions for Node.js 10.5.x // Project: http://nodejs.org/ // Definitions by: Microsoft TypeScript // DefinitelyTyped // Parambir Singh // Christian Vaagland Tellnes // Wilco Bakker // Nicolas Voigt // Chigozirim C. // Flarna // Mariusz Wiktorczyk // wwwy3y3 // Deividas Bakanas // Kelvin Jin // Alvis HT Tang // Sebastian Silbermann // Hannes Magnusson // Alberto Schiabel // Klaus Meinhardt // Huw // Nicolas Even // Bruno Scheufler // Mohsen Azimi // Hoàng Văn Khải // Alexander T. // Lishude // Andrew Makarov // Zane Hannan AU // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * @externs * @fileoverview Definitions for module "timers" */ var timers = {}; /** * @param {(function(...*): void)} callback * @param {number} ms * @param {...*} args * @return {NodeJS.Timer} */ timers.setTimeout = function(callback, ms, args) {}; /** * @param {NodeJS.Timer} timeoutId * @return {void} */ timers.clearTimeout = function(timeoutId) {}; /** * @param {(function(...*): void)} callback * @param {number} ms * @param {...*} args * @return {NodeJS.Timer} */ timers.setInterval = function(callback, ms, args) {}; /** * @param {NodeJS.Timer} intervalId * @return {void} */ timers.clearInterval = function(intervalId) {}; /** * @param {(function(...*): void)} callback * @param {...*} args * @return {*} */ timers.setImmediate = function(callback, args) {}; /** * @param {*} immediateId * @return {void} */ timers.clearImmediate = function(immediateId) {}; module.exports.setTimeout = timers.setTimeout; module.exports.clearTimeout = timers.clearTimeout; module.exports.setInterval = timers.setInterval; module.exports.clearInterval = timers.clearInterval; module.exports.setImmediate = timers.setImmediate; module.exports.clearImmediate = timers.clearImmediate; /** * @param {NodeJS.Timer} item * @return {*} */ timers.active = function(item) {}; /** * @param {NodeJS.Timer} item * @return {*} */ timers._unrefActive = function(item) {}; /** * @param {NodeJS.Timer} item * @return {*} */ timers.unenroll = function(item) {}; /** * @param {NodeJS.Timer} item * @param {number} msecs * @return {*} */ timers.enroll = function(item, msecs) {}; module.exports.active = timers.active; module.exports._unrefActive = timers._unrefActive; module.exports.unenroll = timers.unenroll; module.exports.enroll = timers.enroll;