// 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 "module" */ /** * @param {string} id * @param {Module} parent * @return {Module} * @constructor */ var Module = function(id, parent) {}; /** * @type {Module} */ Module.Module; /** * @type {Array} */ Module.globalPaths; /** * @type {Array} */ Module.wrapper; /** * @param {string} script * @return {string} */ Module.wrap = function(script) {}; /** * @return {void} */ Module.runMain = function() {}; /** * @return {Object} */ Module.requireRepl = function() {}; /** * @type {Object} */ Module._cache; /** * @type {Object} */ Module._pathCache; /** * @type {Object} */ Module._realpathCache; /** * @type {Object} */ Module._extensions; /** * @type {Function} */ Module._debug; /** * @type {Function} */ Module._findPath; /** * @type {Function} */ Module._nodeModulePaths; /** * @type {Function} */ Module._resolveLookupPaths; /** * @type {Function} */ Module._load; /** * @type {Function} */ Module._resolveFilename; /** * @type {Function} */ Module._initPaths; /** * @type {Function} */ Module._preloadModules; /** * @param {string} id * @return {*} */ Module.prototype.require = function(id) {}; module.exports = Module;